]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/content_new_transaction.xml
rename a constant
[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:layout_width="match_parent"
13         android:layout_height="match_parent">
14
15         <LinearLayout
16             android:layout_width="match_parent"
17             android:layout_height="wrap_content"
18             android:orientation="vertical">
19
20             <EditText
21                 android:id="@+id/new_transaction_date"
22                 android:layout_width="match_parent"
23                 android:layout_height="wrap_content"
24                 android:ems="10"
25                 android:hint="@string/new_transaction_date_hint"
26                 android:inputType="date"
27                 android:onClick="pickTransactionDate"
28                 android:textAlignment="center" />
29
30             <TableLayout
31                 android:layout_width="match_parent"
32                 android:layout_height="match_parent">
33
34                 <TableRow
35                     android:layout_width="match_parent"
36                     android:layout_height="match_parent">
37
38                     <AutoCompleteTextView
39                         android:layout_width="match_parent"
40                         android:layout_height="wrap_content"
41                         android:layout_weight="9"
42                         android:width="0dp"
43                         android:hint="@string/new_transaction_account_hint" />
44
45                     <EditText
46                         android:layout_width="wrap_content"
47                         android:layout_height="wrap_content"
48                         android:layout_gravity="end"
49                         android:layout_weight="1"
50                         android:width="0dp"
51                         android:minWidth="36pt"
52                         android:ems="10"
53                         android:gravity="end"
54                         android:hint="@string/new_transaction_amount_hint"
55                         android:inputType="numberDecimal|numberSigned"
56                         android:textAlignment="viewEnd" />
57                 </TableRow>
58
59                 <TableRow
60                     android:layout_width="match_parent"
61                     android:layout_height="match_parent">
62
63                     <AutoCompleteTextView
64                         android:layout_width="match_parent"
65                         android:layout_height="wrap_content"
66                         android:layout_weight="9"
67                         android:width="0dp"
68                         android:hint="@string/new_transaction_account_hint" />
69
70                     <EditText
71                         android:layout_width="wrap_content"
72                         android:layout_height="wrap_content"
73                         android:layout_gravity="end"
74                         android:layout_weight="1"
75                         android:width="0dp"
76                         android:minWidth="36pt"
77                         android:ems="10"
78                         android:gravity="end"
79                         android:hint="@string/new_transaction_amount_hint"
80                         android:inputType="numberDecimal|numberSigned"
81                         android:textAlignment="viewEnd" />
82                 </TableRow>
83
84             </TableLayout>
85
86         </LinearLayout>
87     </ScrollView>
88
89 </android.support.constraint.ConstraintLayout>