use EditWClear for new quick-game-with-know alert

This commit is contained in:
Eric House 2020-09-22 21:25:17 -07:00
parent c17dc91672
commit a054762323
2 changed files with 8 additions and 6 deletions

View file

@ -43,7 +43,7 @@ public class NewWithKnowns extends LinearLayout {
Spinner spinner = (Spinner)findViewById( R.id.names );
spinner.setAdapter( adapter );
EditText et = (EditText)findViewById( R.id.name_edit );
EditWClear et = (EditWClear)findViewById( R.id.name_edit );
et.setText( gameName );
}
@ -55,7 +55,7 @@ public class NewWithKnowns extends LinearLayout {
String gameName()
{
EditText et = (EditText)findViewById( R.id.name_edit );
EditWClear et = (EditWClear)findViewById( R.id.name_edit );
return et.getText().toString();
}
}

View file

@ -23,8 +23,10 @@
android:text="Name your game"
/>
<EditText android:id="@+id/name_edit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<org.eehouse.android.xw4.EditWClear
style="@style/edit_w_clear"
android:id="@+id/name_edit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</org.eehouse.android.xw4.NewWithKnowns>