]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/content_new_transaction.xml
add another account row bu default
[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             <LinearLayout
31                 android:id="@+id/new_transaction_accounts"
32                 android:layout_width="match_parent"
33                 android:layout_height="match_parent"
34                 android:orientation="vertical">
35
36                 <AutoCompleteTextView
37                     android:layout_width="match_parent"
38                     android:layout_height="wrap_content"
39                     android:layout_weight="1"
40                     android:hint="@string/new_transaction_account_label"
41                     android:text="" />
42
43                 <EditText
44                     android:layout_width="match_parent"
45                     android:layout_height="wrap_content"
46                     android:layout_weight="1"
47                     android:ems="10"
48                     android:hint="@string/new_transaction_amount_hint"
49                     android:inputType="numberSigned|numberDecimal"
50                     android:textAlignment="viewEnd" />
51             </LinearLayout>
52
53             <LinearLayout
54                 android:id="@+id/new_transaction_accounts"
55                 android:layout_width="match_parent"
56                 android:layout_height="match_parent"
57                 android:orientation="vertical">
58
59                 <AutoCompleteTextView
60                     android:layout_width="match_parent"
61                     android:layout_height="wrap_content"
62                     android:layout_weight="1"
63                     android:hint="@string/new_transaction_account_label"
64                     android:text="" />
65
66                 <EditText
67                     android:layout_width="match_parent"
68                     android:layout_height="wrap_content"
69                     android:layout_weight="1"
70                     android:ems="10"
71                     android:hint="@string/new_transaction_amount_hint"
72                     android:inputType="numberSigned|numberDecimal"
73                     android:textAlignment="viewEnd" />
74             </LinearLayout>
75
76         </LinearLayout>
77     </ScrollView>
78
79 </android.support.constraint.ConstraintLayout>