]> git.ktnx.net Git - mobile-ledger.git/commitdiff
auto select new transaction description/amounts upon focus
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 10 Nov 2019 17:34:07 +0000 (19:34 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 10 Nov 2019 17:34:07 +0000 (19:34 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java
app/src/main/res/layout/new_transaction_row.xml

index 3198cc1695597687063f781d53e16038c5f0ae74..4bf75d0000e7093d120f695843fb7d945d7b9fa6 100644 (file)
@@ -158,7 +158,6 @@ class NewTransactionItemHolder extends RecyclerView.ViewHolder
                     case transactionRow:
                         tvAccount.requestFocus();
                         tvAccount.dismissDropDown();
-                        tvAccount.selectAll();
                         break;
                 }
             }
index 2356e5ca1dca295d0a5c69a75c127c2d188b649d..9491ba7bc9d8fc401c7e5016098ac5b6e5a3ad54 100644 (file)
@@ -63,6 +63,7 @@
             android:inputType="text"
             android:nextFocusLeft="@+id/new_transaction_date"
             android:nextFocusUp="@+id/new_transaction_date"
+            android:selectAllOnFocus="true"
             android:singleLine="true"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintHorizontal_weight="30"
@@ -86,6 +87,7 @@
             android:inputType="text"
             android:imeOptions="actionNext"
             android:singleLine="true"
+            android:selectAllOnFocus="true"
             android:width="0dp" />
 
         <EditText