fix EditText so monkey can't abuse it

Several EditText fields are configured so monkey breaks things, e.g. by
entering too much text in the default player name config. Fix. This
probably won't impact users but it lets the monkey tests move on to
other things that might.
This commit is contained in:
Eric House 2017-09-07 07:36:16 -07:00
parent f161de2977
commit d87a1ca7a8
4 changed files with 8 additions and 11 deletions

View file

@ -138,8 +138,6 @@
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:scrollHorizontally="false"
android:autoText="false"
android:capitalize="none"
android:maxLines="1"
android:inputType="text"
android:selectAllOnFocus="true"

View file

@ -18,8 +18,9 @@
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:scrollHorizontally="true"
android:autoText="false"
android:capitalize="none"
android:maxLines="1"
android:inputType="textCapWords"
android:maxLength="32"
android:textAppearance="?android:attr/textAppearanceMedium"
android:selectAllOnFocus="true"
/>

View file

@ -51,12 +51,11 @@
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
android:scrollHorizontally="true"
android:autoText="false"
android:capitalize="words"
android:selectAllOnFocus="true"
android:gravity="fill_horizontal"
android:maxLines="1"
android:inputType="text"
android:maxLength="32"
android:inputType="textCapWords"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
@ -102,12 +101,9 @@
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
android:scrollHorizontally="true"
android:autoText="false"
android:capitalize="none"
android:gravity="fill_horizontal"
android:password="true"
android:maxLines="1"
android:inputType="text"
android:inputType="textPassword"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
</LinearLayout>

View file

@ -17,6 +17,7 @@
android:capitalize="words"
android:defaultValue=""
android:maxLines="1"
android:maxLength="32"
android:inputType="text"
/>
<org.eehouse.android.xw4.XWEditTextPreference
@ -25,6 +26,7 @@
android:capitalize="words"
android:defaultValue="@string/button_default_robot"
android:maxLines="1"
android:maxLength="32"
android:inputType="text"
/>
</PreferenceScreen>