mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
use EditWClear for new quick-game-with-know alert
This commit is contained in:
parent
c17dc91672
commit
a054762323
2 changed files with 8 additions and 6 deletions
|
@ -43,7 +43,7 @@ public class NewWithKnowns extends LinearLayout {
|
||||||
Spinner spinner = (Spinner)findViewById( R.id.names );
|
Spinner spinner = (Spinner)findViewById( R.id.names );
|
||||||
spinner.setAdapter( adapter );
|
spinner.setAdapter( adapter );
|
||||||
|
|
||||||
EditText et = (EditText)findViewById( R.id.name_edit );
|
EditWClear et = (EditWClear)findViewById( R.id.name_edit );
|
||||||
et.setText( gameName );
|
et.setText( gameName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ public class NewWithKnowns extends LinearLayout {
|
||||||
|
|
||||||
String gameName()
|
String gameName()
|
||||||
{
|
{
|
||||||
EditText et = (EditText)findViewById( R.id.name_edit );
|
EditWClear et = (EditWClear)findViewById( R.id.name_edit );
|
||||||
return et.getText().toString();
|
return et.getText().toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,10 @@
|
||||||
android:text="Name your game"
|
android:text="Name your game"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<EditText android:id="@+id/name_edit"
|
<org.eehouse.android.xw4.EditWClear
|
||||||
android:layout_width="fill_parent"
|
style="@style/edit_w_clear"
|
||||||
android:layout_height="wrap_content"
|
android:id="@+id/name_edit"
|
||||||
/>
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
/>
|
||||||
</org.eehouse.android.xw4.NewWithKnowns>
|
</org.eehouse.android.xw4.NewWithKnowns>
|
||||||
|
|
Loading…
Reference in a new issue