]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/content_new_transaction.xml
note the 'Account summary' item in the navigation drawer when the Account summary...
[mobile-ledger.git] / app / src / main / res / layout / content_new_transaction.xml
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">
10
11     <ScrollView
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">
18
19         <LinearLayout
20             android:layout_width="match_parent"
21             android:layout_height="wrap_content"
22             android:orientation="vertical">
23
24             <android.support.constraint.ConstraintLayout
25                 android:layout_width="match_parent"
26                 android:layout_height="match_parent">
27
28                 <EditText
29                     android:id="@+id/new_transaction_date"
30                     android:layout_width="94dp"
31                     android:layout_height="wrap_content"
32                     android:ems="10"
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" />
40
41                 <EditText
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=""
47                     android:ems="10"
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>
55
56             <TableLayout
57                 android:id="@+id/new_transaction_accounts_table"
58                 android:layout_width="match_parent"
59                 android:layout_height="match_parent">
60
61                 <TableRow
62                     android:layout_width="match_parent"
63                     android:layout_height="match_parent">
64
65                     <AutoCompleteTextView
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"
70                         android:width="0dp"
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" />
75
76                     <EditText
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"
81                         android:width="0dp"
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" />
88                 </TableRow>
89
90                 <TableRow
91                     android:layout_width="match_parent"
92                     android:layout_height="match_parent">
93
94                     <AutoCompleteTextView
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"
99                         android:width="0dp"
100                         android:hint="@string/new_transaction_account_hint"
101                         android:nextFocusDown="@id/new_transaction_amt_2"
102                         android:nextFocusForward="@id/new_transaction_amt_2" />
103
104                     <EditText
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"
109                         android:width="0dp"
110                         android:hint="@string/new_transaction_amount_hint"
111                         android:inputType="numberDecimal|numberSigned"
112                         android:minWidth="40dp"
113                         android:textAlignment="viewEnd" />
114                 </TableRow>
115
116             </TableLayout>
117
118         </LinearLayout>
119     </ScrollView>
120
121 </android.support.constraint.ConstraintLayout>