]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/content_new_transaction.xml
e8b356b91b00678874f381d6673b9bdafa8dd007
[mobile-ledger.git] / app / src / main / res / layout / content_new_transaction.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   ~ Copyright © 2019 Damyan Ivanov.
4   ~ This file is part of MoLe.
5   ~ MoLe is free software: you can distribute it and/or modify it
6   ~ under the term of the GNU General Public License as published by
7   ~ the Free Software Foundation, either version 3 of the License, or
8   ~ (at your opinion), any later version.
9   ~
10   ~ MoLe is distributed in the hope that it will be useful,
11   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
12   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13   ~ GNU General Public License terms for details.
14   ~
15   ~ You should have received a copy of the GNU General Public License
16   ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
17   -->
18
19 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
20     xmlns:app="http://schemas.android.com/apk/res-auto"
21     xmlns:tools="http://schemas.android.com/tools"
22     android:layout_width="match_parent"
23     android:layout_height="match_parent"
24     app:layout_behavior="@string/appbar_scrolling_view_behavior"
25     tools:context=".ui.activity.NewTransactionActivity"
26     tools:showIn="@layout/activity_new_transaction">
27
28     <ScrollView
29         android:id="@+id/transaction_details"
30         android:layout_width="match_parent"
31         android:layout_height="0dp"
32         app:layout_constraintEnd_toEndOf="parent"
33         app:layout_constraintStart_toStartOf="parent"
34         app:layout_constraintTop_toTopOf="parent">
35
36         <LinearLayout
37             android:layout_width="match_parent"
38             android:layout_height="wrap_content"
39             android:orientation="vertical">
40
41             <androidx.constraintlayout.widget.ConstraintLayout
42                 android:layout_width="match_parent"
43                 android:layout_height="match_parent">
44
45                 <EditText
46                     android:id="@+id/new_transaction_date"
47                     android:layout_width="94dp"
48                     android:layout_height="0dp"
49                     android:accessibilityTraversalBefore="@+id/new_transaction_description"
50                     android:ems="10"
51                     android:foregroundGravity="bottom"
52                     android:gravity="bottom"
53                     android:hint="@string/new_transaction_date_hint"
54                     android:imeOptions="actionNext"
55                     android:inputType="date"
56                     android:nextFocusDown="@+id/new_transaction_acc_1"
57                     android:nextFocusForward="@+id/new_transaction_description"
58                     android:onClick="pickTransactionDate"
59                     android:textAlignment="center"
60                     app:layout_constrainedHeight="true"
61                     app:layout_constraintBottom_toBottomOf="parent"
62                     app:layout_constraintHorizontal_weight="8"
63                     app:layout_constraintStart_toStartOf="parent"
64                     app:layout_constraintTop_toTopOf="parent" />
65
66                 <AutoCompleteTextView
67                     android:id="@+id/new_transaction_description"
68                     android:layout_width="0dp"
69                     android:layout_height="wrap_content"
70                     android:layout_marginStart="8dp"
71                     android:accessibilityTraversalAfter="@+id/new_transaction_date"
72                     android:accessibilityTraversalBefore="@+id/new_transaction_acc_1"
73                     android:ems="10"
74                     android:hint="@string/new_transaction_description_hint"
75                     android:imeOptions="actionNext"
76                     android:nextFocusLeft="@+id/new_transaction_date"
77                     android:nextFocusRight="@+id/new_transaction_acc_1"
78                     android:nextFocusUp="@+id/new_transaction_date"
79                     android:nextFocusDown="@+id/new_transaction_acc_1"
80                     android:nextFocusForward="@+id/new_transaction_acc_1"
81                     android:singleLine="true"
82                     app:layout_constraintEnd_toEndOf="parent"
83                     app:layout_constraintHorizontal_weight="30"
84                     app:layout_constraintStart_toEndOf="@+id/new_transaction_date"
85                     app:layout_constraintTop_toTopOf="parent" />
86             </androidx.constraintlayout.widget.ConstraintLayout>
87
88             <TableLayout
89                 android:id="@+id/new_transaction_accounts_table"
90                 android:animateLayoutChanges="true"
91                 android:layout_width="match_parent"
92                 android:layout_height="match_parent"/>
93
94             <FrameLayout
95                 android:layout_width="match_parent"
96                 android:layout_height="80dp"
97                 android:background="@android:color/transparent">
98
99             </FrameLayout>
100
101         </LinearLayout>
102     </ScrollView>
103
104 </androidx.constraintlayout.widget.ConstraintLayout>