From 917b8f40564ea63c548ebe1510655687b3462329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n?= Date: Tue, 20 Oct 2020 17:10:45 +0200 Subject: [PATCH] Edit texts: select all on focus and capitalize by words/sentences. Fixes #461. --- src/main/res/layout/marker_edit.xml | 11 ++++++++--- src/main/res/layout/track_edit.xml | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/main/res/layout/marker_edit.xml b/src/main/res/layout/marker_edit.xml index d22462cfc..c19271d5a 100644 --- a/src/main/res/layout/marker_edit.xml +++ b/src/main/res/layout/marker_edit.xml @@ -39,7 +39,9 @@ limitations under the License. android:drawableStart="@drawable/ic_marker_orange_pushpin_with_shadow" android:id="@+id/marker_edit_name" android:layout_width="match_parent" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content" + android:inputType="textCapWords" + android:selectAllOnFocus="true" /> + android:imeOptions="actionNext" + android:selectAllOnFocus="true" /> + android:layout_height="wrap_content" + android:inputType="textCapSentences" + android:selectAllOnFocus="true" /> + android:layout_height="wrap_content" + android:inputType="textCapWords" + android:selectAllOnFocus="true" /> + android:imeOptions="actionNext" + android:selectAllOnFocus="true" /> + android:layout_height="wrap_content" + android:inputType="textCapSentences" + android:selectAllOnFocus="true" />