Set single line limit in settings pages

pull/898/head
Alex Baker 5 years ago
parent 824d216177
commit 18bacb8b32

@ -45,10 +45,8 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/TagSettingsEditText"
android:hint="@string/display_name"
android:imeOptions="flagNoExtractUi"
android:inputType="textCapSentences|textAutoCorrect" />
</com.google.android.material.textfield.TextInputLayout>
@ -59,10 +57,8 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/user"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/user"
android:imeOptions="flagNoExtractUi" />
style="@style/TagSettingsEditText"
android:hint="@string/user" />
</com.google.android.material.textfield.TextInputLayout>
@ -73,10 +69,8 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/TagSettingsEditText"
android:hint="@string/password"
android:imeOptions="flagNoExtractUi"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
@ -93,10 +87,8 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/url"
android:imeOptions="flagNoExtractUi" />
style="@style/TagSettingsEditText"
android:hint="@string/url" />
</com.google.android.material.textfield.TextInputLayout>

@ -26,10 +26,8 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/TagSettingsEditText"
android:hint="@string/display_name"
android:imeOptions="flagNoExtractUi"
android:inputType="textCapSentences|textAutoCorrect"/>
</com.google.android.material.textfield.TextInputLayout>

@ -46,10 +46,8 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/encryption_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/TagSettingsEditText"
android:hint="@string/encryption_password"
android:imeOptions="flagNoExtractUi"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
@ -62,10 +60,8 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/repeat_encryption_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/TagSettingsEditText"
android:hint="@string/reenter_encryption_password"
android:imeOptions="flagNoExtractUi"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>

@ -23,10 +23,8 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/TagSettingsEditText"
android:hint="@string/display_name"
android:imeOptions="flagNoExtractUi"
android:inputType="textCapSentences|textFilter"
android:maxLines="1"/>
</com.google.android.material.textfield.TextInputLayout>

@ -23,15 +23,12 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/TagSettingsEditText"
android:hint="@string/display_name"
android:imeOptions="flagNoExtractUi"
android:inputType="textCapSentences|textFilter"
android:maxLines="1"/>
</com.google.android.material.textfield.TextInputLayout>
<include layout="@layout/list_settings_color"/>
<include layout="@layout/list_settings_icon"/>

@ -67,6 +67,14 @@
<item name="android:layout_height">wrap_content</item>
</style>
<style name="TagSettingsEditText">
<item name="android:maxLines">1</item>
<item name="android:inputType">textNoSuggestions</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:imeOptions">flagNoExtractUi</item>
</style>
<!--================================================== General == -->
<style name="TextAppearance" parent="android:TextAppearance">

Loading…
Cancel
Save