add inputType=text to singleline EditTexts

Turns out the maxLine="1" thing needs this accompaniment or it'll let
you add carriage returns, as adb monkey found.
This commit is contained in:
Eric House 2017-09-07 06:13:14 -07:00
parent 6866887438
commit 1ee5afd5cf
14 changed files with 28 additions and 4 deletions

View file

@ -6,12 +6,14 @@
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_marginRight="8dp"
android:maxLines="1"
android:inputType="text"
/>
<TextView android:id="@+id/chat_row_name"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_marginRight="8dp"
android:maxLines="1"
android:inputType="text"
/>
<TextView android:id="@+id/chat_row_text"
android:layout_height="wrap_content"

View file

@ -13,6 +13,7 @@
android:autoText="false"
android:capitalize="words"
android:maxLines="1"
android:inputType="text"
android:selectAllOnFocus="true"
android:textAppearance="?android:attr/textAppearanceMedium"
/>

View file

@ -27,6 +27,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:inputType="text"
android:layout_weight="1"
android:hint="@string/word_search_hint"
android:capitalize="characters"

View file

@ -141,6 +141,7 @@
android:autoText="false"
android:capitalize="none"
android:maxLines="1"
android:inputType="text"
android:selectAllOnFocus="true"
android:windowSoftInputMode="stateHidden"
android:maxLength="31"

View file

@ -79,6 +79,7 @@
android:gravity="center"
android:layout_weight="1"
android:maxLines="1"
android:inputType="text"
android:textAppearance="?android:attr/textAppearanceMedium"
/>

View file

@ -20,6 +20,7 @@
android:layout_marginRight="30dip"
android:autoText="false"
android:maxLines="1"
android:inputType="text"
android:selectAllOnFocus="true"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
@ -38,6 +39,7 @@
android:layout_marginRight="30dip"
android:autoText="false"
android:maxLines="1"
android:inputType="text"
android:selectAllOnFocus="true"
android:textAppearance="?android:attr/textAppearanceMedium"
/>

View file

@ -20,6 +20,7 @@
android:layout_marginRight="30dip"
android:autoText="false"
android:maxLines="1"
android:inputType="text"
android:selectAllOnFocus="true"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
@ -38,6 +39,7 @@
android:layout_marginRight="30dip"
android:autoText="false"
android:maxLines="1"
android:inputType="text"
android:selectAllOnFocus="true"
android:textAppearance="?android:attr/textAppearanceMedium"
/>

View file

@ -32,6 +32,7 @@
android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceMedium"
android:maxLines="1"
android:inputType="text"
/>
<TextView android:id="@+id/text_item2"
@ -40,6 +41,7 @@
android:layout_weight="1"
android:gravity="right"
android:maxLines="1"
android:inputType="text"
android:visibility="gone"
/>

View file

@ -10,10 +10,12 @@
<TextView android:id="@+id/english_view"
style="@style/evenly_spaced_horizontal"
android:maxLines="1"
android:inputType="text"
/>
<TextView android:id="@+id/xlated_view"
style="@style/evenly_spaced_horizontal"
android:maxLines="1"
android:inputType="text"
/>
</org.eehouse.android.xw4.loc.LocListItem>

View file

@ -38,6 +38,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:inputType="text"
android:layout_weight="1"
/>

View file

@ -56,6 +56,7 @@
android:selectAllOnFocus="true"
android:gravity="fill_horizontal"
android:maxLines="1"
android:inputType="text"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
@ -106,6 +107,7 @@
android:gravity="fill_horizontal"
android:password="true"
android:maxLines="1"
android:inputType="text"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
</LinearLayout>

View file

@ -10,12 +10,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:inputType="text"
android:gravity="left"
/>
<TextView android:id="@+id/item_score"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:inputType="text"
android:gravity="right"
/>
</org.eehouse.android.xw4.ExpiringLinearLayout>

View file

@ -21,6 +21,7 @@
android:layout_marginRight="30dip"
android:autoText="false"
android:maxLines="1"
android:inputType="text"
android:selectAllOnFocus="true"
android:textAppearance="?android:attr/textAppearanceMedium"
/>

View file

@ -16,12 +16,16 @@
android:title="@string/pref_human_name"
android:capitalize="words"
android:defaultValue=""
android:maxLines="1"
android:inputType="text"
/>
<org.eehouse.android.xw4.XWEditTextPreference
android:key="@string/key_robot_name"
android:title="@string/robot_label"
android:capitalize="words"
android:defaultValue="@string/button_default_robot"
android:maxLines="1"
android:inputType="text"
/>
</PreferenceScreen>