X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fres%2Flayout%2Fcontent_new_transaction.xml;h=dd7e3ff7d9b6ee27dfad98dc14d090b1488093fb;hp=32756060f9209a6b7725b8879078c76f807abb46;hb=8b2a83f10265f8c8e8044b8dd990337283834afd;hpb=48d2f79edc48f9aa504b5d0214429a8e5017bf3e diff --git a/app/src/main/res/layout/content_new_transaction.xml b/app/src/main/res/layout/content_new_transaction.xml index 32756060..dd7e3ff7 100644 --- a/app/src/main/res/layout/content_new_transaction.xml +++ b/app/src/main/res/layout/content_new_transaction.xml @@ -1,4 +1,21 @@ + + @@ -43,9 +68,17 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="8dp" + android:accessibilityTraversalAfter="@+id/new_transaction_date" + android:accessibilityTraversalBefore="@+id/new_transaction_acc_1" android:ems="10" android:hint="@string/new_transaction_description_hint" - android:inputType="textPersonName" + android:imeOptions="actionNext" + android:nextFocusLeft="@+id/new_transaction_date" + android:nextFocusRight="@+id/new_transaction_acc_1" + android:nextFocusUp="@+id/new_transaction_date" + android:nextFocusDown="@+id/new_transaction_acc_1" + android:nextFocusForward="@+id/new_transaction_acc_1" + android:singleLine="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_weight="30" app:layout_constraintStart_toEndOf="@+id/new_transaction_date" @@ -65,24 +98,38 @@ android:id="@+id/new_transaction_acc_1" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_gravity="bottom" android:layout_weight="9" android:width="0dp" + android:accessibilityTraversalAfter="@+id/new_transaction_description" + android:accessibilityTraversalBefore="@+id/new_transaction_amt_1" android:hint="@string/new_transaction_account_hint" - android:nextFocusDown="@id/new_transaction_amt_1" - android:nextFocusForward="@id/new_transaction_amt_1" - android:textColorLink="@android:color/background_light" /> + android:imeOptions="actionNext" + android:nextFocusLeft="@+id/new_transaction_description" + android:nextFocusRight="@+id/new_transaction_amt_1" + android:nextFocusUp="@+id/new_transaction_description" + android:nextFocusDown="@+id/new_transaction_amt_1" + android:nextFocusForward="@+id/new_transaction_amt_1" + android:singleLine="true" /> @@ -94,21 +141,34 @@ android:id="@+id/new_transaction_acc_2" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_gravity="bottom" android:layout_weight="9" android:width="0dp" + android:accessibilityTraversalAfter="@+id/new_transaction_amt_1" + android:accessibilityTraversalBefore="@+id/new_transaction_amt_2" android:hint="@string/new_transaction_account_hint" - android:nextFocusDown="@id/new_transaction_amt_2" - android:nextFocusForward="@id/new_transaction_amt_2" /> + android:imeOptions="actionNext" + android:nextFocusLeft="@+id/new_transaction_amt_1" + android:nextFocusRight="@+id/new_transaction_amt_2" + android:nextFocusUp="@+id/new_transaction_acc_1" + android:nextFocusDown="@+id/new_transaction_amt_2" + android:nextFocusForward="@+id/new_transaction_amt_2" + android:singleLine="true" />