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