mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
rename file
And change something that was using custom layout for just its checkbox to just use a checkbox.
This commit is contained in:
parent
f8bba60798
commit
9f7975d471
3 changed files with 4 additions and 8 deletions
|
@ -80,12 +80,10 @@ public class ConnViaViewLayout extends LinearLayout {
|
|||
CommsConnTypeSet supported = CommsConnTypeSet.getSupported( context );
|
||||
|
||||
for ( CommsConnType typ : supported.getTypes() ) {
|
||||
LinearLayout item = (LinearLayout)
|
||||
LocUtils.inflate( context, R.layout.inviter_item );
|
||||
CheckBox box = (CheckBox)item.findViewById( R.id.inviter_check );
|
||||
CheckBox box = new CheckBox( context );
|
||||
box.setText( typ.longName( context ) );
|
||||
box.setChecked( m_curSet.contains( typ ) );
|
||||
list.addView( item );
|
||||
list.addView( box );
|
||||
|
||||
final CommsConnType typf = typ;
|
||||
box.setOnCheckedChangeListener( new OnCheckedChangeListener() {
|
||||
|
|
|
@ -272,14 +272,12 @@ abstract class InviteDelegate extends ListDelegateBase
|
|||
ViewGroup parent )
|
||||
{
|
||||
final InviterItem item = m_items[position];
|
||||
final LinearLayout layout = (LinearLayout)inflate( R.layout.inviter_item );
|
||||
final LinearLayout layout = (LinearLayout)
|
||||
inflate( R.layout.inviter_item_frame );
|
||||
CheckBox box = (CheckBox)layout.findViewById( R.id.inviter_check );
|
||||
// box.setText( m_devNames[position] );
|
||||
// box.setTag( addr );
|
||||
|
||||
// Give subclass a chance to install and populate its view
|
||||
FrameLayout frame = (FrameLayout)layout.findViewById( R.id.frame );
|
||||
Assert.assertNotNull( frame );
|
||||
View child = inflate( m_itemId );
|
||||
frame.addView( child );
|
||||
onChildAdded( child, m_items[position] );
|
||||
|
|
Loading…
Reference in a new issue