]> git.ktnx.net Git - mobile-ledger.git/commitdiff
incomplete attempt to set the Tab order
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 30 Nov 2018 18:55:44 +0000 (18:55 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 30 Nov 2018 18:55:44 +0000 (18:55 +0000)
app/src/main/res/layout/content_new_transaction.xml

index 4fcce131cd1299f5c45d6ffed58aed048df381d4..28f393d1dbe002c2b8915dacdeb8e722ad1743d4 100644 (file)
             <TableLayout
                 android:id="@+id/new_transaction_accounts_table"
                 android:layout_width="match_parent"
-                android:layout_height="match_parent">
+                android:layout_height="match_parent"
+                >
 
                 <TableRow
                     android:layout_width="match_parent"
                     android:layout_height="match_parent">
 
                     <AutoCompleteTextView
+                        android:id="@+id/new_transaction_acc_1"
                         android:layout_width="match_parent"
                         android:layout_height="wrap_content"
                         android:layout_weight="9"
                         android:width="0dp"
-                        android:hint="@string/new_transaction_account_hint" />
+                        android:hint="@string/new_transaction_account_hint"
+                        android:nextFocusDown="@id/new_transaction_amt_1"
+                        android:nextFocusForward="@id/new_transaction_amt_1" />
 
                     <EditText
+                        android:id="@+id/new_transaction_amt_1"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:layout_weight="1"
@@ -51,6 +56,8 @@
                         android:hint="@string/new_transaction_amount_hint"
                         android:inputType="numberDecimal|numberSigned"
                         android:minWidth="24pt"
+                        android:nextFocusDown="@id/new_transaction_acc_2"
+                        android:nextFocusForward="@id/new_transaction_acc_2"
                         android:textAlignment="viewEnd" />
                 </TableRow>
 
                     android:layout_height="match_parent">
 
                     <AutoCompleteTextView
+                        android:id="@+id/new_transaction_acc_2"
                         android:layout_width="match_parent"
                         android:layout_height="wrap_content"
                         android:layout_weight="9"
                         android:width="0dp"
-                        android:hint="@string/new_transaction_account_hint" />
+                        android:hint="@string/new_transaction_account_hint"
+                        android:nextFocusDown="@id/new_transaction_amt_2"
+                        android:nextFocusForward="@id/new_transaction_amt_2" />
 
                     <EditText
+                        android:id="@+id/new_transaction_amt_2"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:layout_weight="1"