From: Damyan Ivanov Date: Mon, 25 Nov 2019 21:11:47 +0000 (+0200) Subject: NT: do not select all text in description and account name X-Git-Tag: v0.11.0~29 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=commitdiff_plain;h=8a6bcb2cad180f88b123328e0999833b42f47e6e NT: do not select all text in description and account name we have the [X] to clear the input if needed and auto-select-all on large inputs is visually disturbing --- diff --git a/app/src/main/res/layout/new_transaction_row.xml b/app/src/main/res/layout/new_transaction_row.xml index ad180a59..fcc18a38 100644 --- a/app/src/main/res/layout/new_transaction_row.xml +++ b/app/src/main/res/layout/new_transaction_row.xml @@ -66,7 +66,7 @@ android:inputType="text" android:nextFocusLeft="@+id/new_transaction_date" android:nextFocusUp="@+id/new_transaction_date" - android:selectAllOnFocus="true" + android:selectAllOnFocus="false" android:singleLine="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" @@ -88,10 +88,10 @@ android:layout_height="wrap_content" android:layout_weight="9" android:hint="@string/new_transaction_account_hint" + android:selectAllOnFocus="false" android:inputType="text" android:imeOptions="actionNext" android:singleLine="true" - android:selectAllOnFocus="true" android:width="0dp" />