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 android:layout_marginBottom="8dp"
16 app:layout_constraintBottom_toTopOf="@+id/constraintLayout"
17 app:layout_constraintEnd_toEndOf="parent"
18 app:layout_constraintStart_toStartOf="parent"
19 app:layout_constraintTop_toTopOf="parent">
22 android:layout_width="match_parent"
23 android:layout_height="wrap_content"
24 android:orientation="vertical">
26 <android.support.constraint.ConstraintLayout
27 android:layout_width="match_parent"
28 android:layout_height="match_parent">
31 android:id="@+id/new_transaction_date"
32 android:layout_width="94dp"
33 android:layout_height="wrap_content"
35 android:hint="@string/new_transaction_date_hint"
36 android:inputType="date"
37 android:onClick="pickTransactionDate"
38 android:textAlignment="center"
39 app:layout_constraintHorizontal_weight="8"
40 app:layout_constraintStart_toStartOf="parent"
41 app:layout_constraintTop_toTopOf="parent" />
44 android:id="@+id/new_transaction_description"
45 android:layout_width="0dp"
46 android:layout_height="wrap_content"
47 android:layout_marginStart="8dp"
49 android:hint="@string/new_transaction_description_hint"
50 android:inputType="textPersonName"
51 app:layout_constraintEnd_toEndOf="parent"
52 app:layout_constraintHorizontal_weight="30"
53 app:layout_constraintStart_toEndOf="@+id/new_transaction_date"
54 app:layout_constraintTop_toTopOf="parent"
55 android:autofillHints="" />
56 </android.support.constraint.ConstraintLayout>
59 android:id="@+id/new_transaction_accounts_table"
60 android:layout_width="match_parent"
61 android:layout_height="match_parent">
64 android:layout_width="match_parent"
65 android:layout_height="match_parent">
68 android:id="@+id/new_transaction_acc_1"
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 android:layout_weight="9"
73 android:hint="@string/new_transaction_account_hint"
74 android:nextFocusDown="@id/new_transaction_amt_1"
75 android:nextFocusForward="@id/new_transaction_amt_1" />
78 android:id="@+id/new_transaction_amt_1"
79 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
81 android:layout_weight="1"
83 android:hint="@string/new_transaction_amount_hint"
84 android:inputType="numberDecimal|numberSigned"
85 android:minWidth="40dp"
86 android:nextFocusDown="@id/new_transaction_acc_2"
87 android:nextFocusForward="@id/new_transaction_acc_2"
88 android:textAlignment="viewEnd" />
92 android:layout_width="match_parent"
93 android:layout_height="match_parent">
96 android:id="@+id/new_transaction_acc_2"
97 android:layout_width="match_parent"
98 android:layout_height="wrap_content"
99 android:layout_weight="9"
101 android:hint="@string/new_transaction_account_hint"
102 android:nextFocusDown="@id/new_transaction_amt_2"
103 android:nextFocusForward="@id/new_transaction_amt_2" />
106 android:id="@+id/new_transaction_amt_2"
107 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"
109 android:layout_weight="1"
111 android:hint="@string/new_transaction_amount_hint"
112 android:inputType="numberDecimal|numberSigned"
113 android:minWidth="40dp"
114 android:textAlignment="viewEnd" />
122 <android.support.constraint.ConstraintLayout
123 android:id="@+id/constraintLayout"
124 android:layout_width="match_parent"
125 android:layout_height="wrap_content"
126 android:layout_marginBottom="8dp"
127 android:visibility="gone"
128 app:layout_constraintBottom_toBottomOf="parent"
129 app:layout_constraintEnd_toEndOf="parent"
130 app:layout_constraintStart_toStartOf="parent">
133 android:id="@+id/progressBar3"
134 style="?android:attr/progressBarStyle"
135 android:layout_width="wrap_content"
136 android:layout_height="wrap_content" />
139 android:id="@+id/textView3"
140 android:layout_width="0dp"
141 android:layout_height="wrap_content"
142 android:layout_marginStart="8dp"
143 android:layout_marginTop="8dp"
144 android:layout_marginEnd="8dp"
145 android:layout_marginBottom="8dp"
146 app:layout_constraintBottom_toBottomOf="parent"
147 app:layout_constraintEnd_toEndOf="parent"
148 app:layout_constraintHorizontal_bias="0.0"
149 app:layout_constraintStart_toEndOf="@+id/progressBar3"
150 app:layout_constraintTop_toTopOf="parent"
151 app:layout_constraintVertical_bias="0.615" />
152 </android.support.constraint.ConstraintLayout>
154 </android.support.constraint.ConstraintLayout>