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="wrap_content"
33 android:hint="@string/new_transaction_date_hint"
34 android:inputType="date"
35 android:onClick="pickTransactionDate"
36 android:textAlignment="center"
37 app:layout_constraintHorizontal_weight="8"
38 app:layout_constraintStart_toStartOf="parent"
39 app:layout_constraintTop_toTopOf="parent" />
42 android:id="@+id/new_transaction_description"
43 android:layout_width="0dp"
44 android:layout_height="wrap_content"
45 android:layout_marginStart="8dp"
46 android:autofillHints=""
48 android:hint="@string/new_transaction_description_hint"
49 android:inputType="textPersonName"
50 app:layout_constraintEnd_toEndOf="parent"
51 app:layout_constraintHorizontal_weight="30"
52 app:layout_constraintStart_toEndOf="@+id/new_transaction_date"
53 app:layout_constraintTop_toTopOf="parent" />
54 </android.support.constraint.ConstraintLayout>
57 android:id="@+id/new_transaction_accounts_table"
58 android:layout_width="match_parent"
59 android:layout_height="match_parent">
62 android:layout_width="match_parent"
63 android:layout_height="match_parent">
66 android:id="@+id/new_transaction_acc_1"
67 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
69 android:layout_weight="9"
71 android:hint="@string/new_transaction_account_hint"
72 android:nextFocusDown="@id/new_transaction_amt_1"
73 android:nextFocusForward="@id/new_transaction_amt_1"
74 android:textColorLink="@android:color/background_light" />
77 android:id="@+id/new_transaction_amt_1"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:layout_weight="1"
82 android:hint="@string/new_transaction_amount_hint"
83 android:inputType="numberDecimal|numberSigned"
84 android:minWidth="40dp"
85 android:nextFocusDown="@id/new_transaction_acc_2"
86 android:nextFocusForward="@id/new_transaction_acc_2"
87 android:textAlignment="viewEnd" />
91 android:layout_width="match_parent"
92 android:layout_height="match_parent">
95 android:id="@+id/new_transaction_acc_2"
96 android:layout_width="match_parent"
97 android:layout_height="wrap_content"
98 android:layout_weight="9"
100 android:hint="@string/new_transaction_account_hint"
101 android:nextFocusDown="@id/new_transaction_amt_2"
102 android:nextFocusForward="@id/new_transaction_amt_2" />
105 android:id="@+id/new_transaction_amt_2"
106 android:layout_width="wrap_content"
107 android:layout_height="wrap_content"
108 android:layout_weight="1"
110 android:hint="@string/new_transaction_amount_hint"
111 android:inputType="numberDecimal|numberSigned"
112 android:minWidth="40dp"
113 android:textAlignment="viewEnd" />
121 </android.support.constraint.ConstraintLayout>