From 64ce6f259399ab51ed62071e7e04a5081daa69b3 Mon Sep 17 00:00:00 2001 From: Gabor Keszthelyi Date: Thu, 30 Mar 2017 00:10:30 +0200 Subject: [PATCH] Set all EditTexts in the app to use textCapSentences inputType to capitalize first letters. (#289) --- opentasks/src/main/res/layout-v11/text_field_editor.xml | 1 + .../src/main/res/layout/checklist_field_editor_element.xml | 2 +- opentasks/src/main/res/layout/fragment_input_text_dialog.xml | 2 +- opentasks/src/main/res/layout/fragment_quick_add_dialog.xml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/opentasks/src/main/res/layout-v11/text_field_editor.xml b/opentasks/src/main/res/layout-v11/text_field_editor.xml index a8e25a2d8..e2c3878b3 100644 --- a/opentasks/src/main/res/layout-v11/text_field_editor.xml +++ b/opentasks/src/main/res/layout-v11/text_field_editor.xml @@ -7,6 +7,7 @@ diff --git a/opentasks/src/main/res/layout/checklist_field_editor_element.xml b/opentasks/src/main/res/layout/checklist_field_editor_element.xml index c090426ad..1964ccf3e 100644 --- a/opentasks/src/main/res/layout/checklist_field_editor_element.xml +++ b/opentasks/src/main/res/layout/checklist_field_editor_element.xml @@ -16,7 +16,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:inputType="text" + android:inputType="textCapSentences" android:singleLine="true" android:textAllCaps="false" > diff --git a/opentasks/src/main/res/layout/fragment_input_text_dialog.xml b/opentasks/src/main/res/layout/fragment_input_text_dialog.xml index 52fd69735..16763aed2 100644 --- a/opentasks/src/main/res/layout/fragment_input_text_dialog.xml +++ b/opentasks/src/main/res/layout/fragment_input_text_dialog.xml @@ -35,7 +35,7 @@ android:layout_marginTop="12dp" android:hint="@string/task_list_name_dialog_hint" android:imeOptions="actionDone" - android:inputType="text" + android:inputType="textCapSentences" android:minWidth="240dp" android:textCursorDrawable="@null" /> diff --git a/opentasks/src/main/res/layout/fragment_quick_add_dialog.xml b/opentasks/src/main/res/layout/fragment_quick_add_dialog.xml index fbd2a5a1a..aa74d8c2d 100644 --- a/opentasks/src/main/res/layout/fragment_quick_add_dialog.xml +++ b/opentasks/src/main/res/layout/fragment_quick_add_dialog.xml @@ -39,7 +39,7 @@ android:layout_margin="4dp" android:hint="@string/task_title" android:imeOptions="actionDone" - android:inputType="text" + android:inputType="textCapSentences" android:minWidth="240dp" />