1 <?xml version="1.0" encoding="utf-8"?>
2 <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:app="http://schemas.android.com/apk/res-auto"
4 xmlns:tools="http://schemas.android.com/tools"
5 android:layout_width="match_parent"
6 android:layout_height="match_parent"
7 app:layout_behavior="@string/appbar_scrolling_view_behavior"
8 tools:context=".NewTransactionActivity"
9 tools:showIn="@layout/activity_new_transaction">
12 android:id="@+id/transaction_details"
13 android:layout_width="match_parent"
14 android:layout_height="0dp"
15 app:layout_constraintEnd_toEndOf="parent"
16 app:layout_constraintStart_toStartOf="parent"
17 app:layout_constraintTop_toTopOf="parent">
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:orientation="vertical">
24 <android.support.constraint.ConstraintLayout
25 android:layout_width="match_parent"
26 android:layout_height="match_parent">
29 android:id="@+id/new_transaction_date"
30 android:layout_width="94dp"
31 android:layout_height="0dp"
32 android:accessibilityTraversalBefore="@+id/new_transaction_description"
34 android:foregroundGravity="bottom"
35 android:gravity="bottom"
36 android:hint="@string/new_transaction_date_hint"
37 android:imeOptions="actionNext"
38 android:inputType="date"
39 android:nextFocusDown="@+id/new_transaction_acc_1"
40 android:nextFocusForward="@+id/new_transaction_description"
41 android:onClick="pickTransactionDate"
42 android:textAlignment="center"
43 app:layout_constrainedHeight="true"
44 app:layout_constraintBottom_toBottomOf="parent"
45 app:layout_constraintHorizontal_weight="8"
46 app:layout_constraintStart_toStartOf="parent"
47 app:layout_constraintTop_toTopOf="parent" />
50 android:id="@+id/new_transaction_description"
51 android:layout_width="0dp"
52 android:layout_height="wrap_content"
53 android:layout_marginStart="8dp"
54 android:accessibilityTraversalAfter="@+id/new_transaction_date"
55 android:accessibilityTraversalBefore="@+id/new_transaction_acc_1"
57 android:hint="@string/new_transaction_description_hint"
58 android:imeOptions="actionNext"
59 android:nextFocusLeft="@+id/new_transaction_date"
60 android:nextFocusRight="@+id/new_transaction_acc_1"
61 android:nextFocusUp="@+id/new_transaction_date"
62 android:nextFocusDown="@+id/new_transaction_acc_1"
63 android:nextFocusForward="@+id/new_transaction_acc_1"
64 android:singleLine="true"
65 app:layout_constraintEnd_toEndOf="parent"
66 app:layout_constraintHorizontal_weight="30"
67 app:layout_constraintStart_toEndOf="@+id/new_transaction_date"
68 app:layout_constraintTop_toTopOf="parent" />
69 </android.support.constraint.ConstraintLayout>
72 android:id="@+id/new_transaction_accounts_table"
73 android:layout_width="match_parent"
74 android:layout_height="match_parent">
77 android:layout_width="match_parent"
78 android:layout_height="match_parent">
81 android:id="@+id/new_transaction_acc_1"
82 android:layout_width="match_parent"
83 android:layout_height="wrap_content"
84 android:layout_gravity="bottom"
85 android:layout_weight="9"
87 android:accessibilityTraversalAfter="@+id/new_transaction_description"
88 android:accessibilityTraversalBefore="@+id/new_transaction_amt_1"
89 android:hint="@string/new_transaction_account_hint"
90 android:imeOptions="actionNext"
91 android:nextFocusLeft="@+id/new_transaction_description"
92 android:nextFocusRight="@+id/new_transaction_amt_1"
93 android:nextFocusUp="@+id/new_transaction_description"
94 android:nextFocusDown="@+id/new_transaction_amt_1"
95 android:nextFocusForward="@+id/new_transaction_amt_1"
96 android:singleLine="true" />
99 android:id="@+id/new_transaction_amt_1"
100 android:layout_width="wrap_content"
101 android:layout_height="match_parent"
102 android:layout_gravity="bottom"
103 android:layout_weight="1"
105 android:hint="@string/new_transaction_amount_hint"
106 android:imeOptions="actionNext"
107 android:inputType="numberDecimal|numberSigned"
108 android:minWidth="40dp"
109 android:accessibilityTraversalAfter="@+id/new_transaction_acc_1"
110 android:accessibilityTraversalBefore="@+id/new_transaction_acc_2"
111 android:nextFocusLeft="@+id/new_transaction_acc_1"
112 android:nextFocusRight="@+id/new_transaction_acc_2"
113 android:nextFocusUp="@+id/new_transaction_acc_1"
114 android:nextFocusDown="@+id/new_transaction_acc_2"
115 android:nextFocusForward="@+id/new_transaction_acc_2"
116 android:textAlignment="viewEnd" />
120 android:layout_width="match_parent"
121 android:layout_height="match_parent">
123 <AutoCompleteTextView
124 android:id="@+id/new_transaction_acc_2"
125 android:layout_width="match_parent"
126 android:layout_height="wrap_content"
127 android:layout_gravity="bottom"
128 android:layout_weight="9"
130 android:accessibilityTraversalAfter="@+id/new_transaction_amt_1"
131 android:accessibilityTraversalBefore="@+id/new_transaction_amt_2"
132 android:hint="@string/new_transaction_account_hint"
133 android:imeOptions="actionNext"
134 android:nextFocusLeft="@+id/new_transaction_amt_1"
135 android:nextFocusRight="@+id/new_transaction_amt_2"
136 android:nextFocusUp="@+id/new_transaction_acc_1"
137 android:nextFocusDown="@+id/new_transaction_amt_2"
138 android:nextFocusForward="@+id/new_transaction_amt_2"
139 android:singleLine="true" />
142 android:id="@+id/new_transaction_amt_2"
143 android:layout_width="wrap_content"
144 android:layout_height="match_parent"
145 android:layout_gravity="bottom"
146 android:layout_weight="1"
148 android:hint="@string/new_transaction_amount_hint"
149 android:imeOptions="actionDone"
150 android:inputType="numberDecimal|numberSigned"
151 android:minWidth="40dp"
152 android:accessibilityTraversalAfter="@+id/new_transaction_acc_1"
153 android:nextFocusLeft="@+id/new_transaction_acc_2"
154 android:nextFocusUp="@+id/new_transaction_amt_1"
155 android:textAlignment="viewEnd" />
163 </android.support.constraint.ConstraintLayout>