]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/content_new_transaction.xml
fixed min amount width of 40dp (abt. 6 digits)
[mobile-ledger.git] / app / src / main / res / layout / content_new_transaction.xml
index c5170855e5f076d59ea06117db8f2858893e8839..7ea277bddb0425755916cde5fecef33f7443e755 100644 (file)
                 android:textAlignment="center" />
 
             <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_gravity="end"
                         android:layout_weight="1"
                         android:width="0dp"
-                        android:minWidth="36pt"
-                        android:ems="10"
-                        android:gravity="end"
                         android:hint="@string/new_transaction_amount_hint"
                         android:inputType="numberDecimal|numberSigned"
+                        android:minWidth="40dp"
+                        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_gravity="end"
                         android:layout_weight="1"
                         android:width="0dp"
-                        android:minWidth="36pt"
-                        android:ems="10"
-                        android:gravity="end"
                         android:hint="@string/new_transaction_amount_hint"
                         android:inputType="numberDecimal|numberSigned"
+                        android:minWidth="40dp"
                         android:textAlignment="viewEnd" />
                 </TableRow>