Edit texts: select all on focus and capitalize by words/sentences. Fixes #461.

This commit is contained in:
Román
2020-10-20 17:10:45 +02:00
committed by Román Martínez
parent 70c1379778
commit 917b8f4056
2 changed files with 16 additions and 6 deletions
+8 -3
View File
@@ -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" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
@@ -53,7 +55,8 @@ limitations under the License.
style="@style/EditCategory"
android:layout_width="match_parent"
android:hint="@string/marker_edit_marker_type"
android:imeOptions="actionNext" />
android:imeOptions="actionNext"
android:selectAllOnFocus="true" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
@@ -66,7 +69,9 @@ limitations under the License.
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/marker_edit_description"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:inputType="textCapSentences"
android:selectAllOnFocus="true" />
</com.google.android.material.textfield.TextInputLayout>
<RelativeLayout
+8 -3
View File
@@ -38,7 +38,9 @@ limitations under the License.
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/track_edit_name"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:inputType="textCapWords"
android:selectAllOnFocus="true" />
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout
@@ -57,7 +59,8 @@ limitations under the License.
android:id="@+id/track_edit_activity_type"
style="@style/EditCategory"
android:hint="@string/track_edit_activity_type_hint"
android:imeOptions="actionNext" />
android:imeOptions="actionNext"
android:selectAllOnFocus="true" />
</com.google.android.material.textfield.TextInputLayout>
<Spinner
@@ -77,7 +80,9 @@ limitations under the License.
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/track_edit_description"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:inputType="textCapSentences"
android:selectAllOnFocus="true" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>