]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/new_transaction_account_row.xml
more pronounced day/month delimiters in the transaction list
[mobile-ledger.git] / app / src / main / res / layout / new_transaction_account_row.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
2   ~ Copyright © 2021 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 <androidx.constraintlayout.widget.ConstraintLayout 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="true"
24     >
25
26     <TextView
27         android:id="@+id/dummy_text"
28         android:layout_width="wrap_content"
29         android:layout_height="wrap_content"
30         android:visibility="gone"
31         tools:ignore="MissingConstraints"
32         />
33     <net.ktnx.mobileledger.ui.AutoCompleteTextViewWithClear
34         android:id="@+id/account_row_acc_name"
35         android:layout_width="0dp"
36         android:layout_height="wrap_content"
37         android:layout_weight="9"
38         android:width="0dp"
39         android:hint="@string/new_transaction_account_hint"
40         android:imeOptions="actionNext"
41         android:inputType="text"
42         android:selectAllOnFocus="false"
43         app:layout_constraintEnd_toEndOf="parent"
44         app:layout_constraintStart_toStartOf="parent"
45         app:layout_constraintTop_toTopOf="parent"
46         />
47
48     <androidx.constraintlayout.widget.ConstraintLayout
49         android:id="@+id/comment_layout"
50         android:layout_width="0dp"
51         android:layout_height="wrap_content"
52         app:layout_constraintEnd_toStartOf="@id/amount_layout"
53         app:layout_constraintStart_toStartOf="parent"
54         app:layout_constraintTop_toBottomOf="@id/account_row_acc_name"
55         >
56
57         <TextView
58             android:id="@+id/account_comment_button"
59             android:layout_width="wrap_content"
60             android:layout_height="wrap_content"
61             android:background="@drawable/ic_comment_gray_24dp"
62             app:layout_constraintBottom_toBottomOf="parent"
63             app:layout_constraintStart_toStartOf="parent"
64             app:layout_constraintTop_toTopOf="parent"
65             />
66
67         <net.ktnx.mobileledger.ui.EditTextWithClear
68             android:id="@+id/comment"
69             android:layout_width="0dp"
70             android:layout_height="wrap_content"
71             android:imeOptions="actionNext"
72             android:inputType="text"
73             android:visibility="invisible"
74             app:layout_constraintEnd_toEndOf="parent"
75             app:layout_constraintStart_toEndOf="@id/account_comment_button"
76             app:layout_constraintTop_toTopOf="parent"
77             />
78     </androidx.constraintlayout.widget.ConstraintLayout>
79
80     <androidx.constraintlayout.widget.ConstraintLayout
81         android:id="@+id/amount_layout"
82         android:layout_width="wrap_content"
83         android:layout_height="wrap_content"
84         app:layout_constraintEnd_toEndOf="parent"
85         app:layout_constraintTop_toBottomOf="@id/account_row_acc_name"
86         >
87
88         <TextView
89             android:id="@+id/currencyButton"
90             android:layout_width="wrap_content"
91             android:layout_height="0dp"
92             android:minWidth="30dp"
93             app:layout_constraintBottom_toBottomOf="parent"
94             app:layout_constraintEnd_toEndOf="@id/currency"
95             app:layout_constraintStart_toStartOf="@id/currency"
96             app:layout_constraintTop_toTopOf="parent"
97             />
98         <EditText
99             android:id="@+id/account_row_acc_amounts"
100             android:layout_width="wrap_content"
101             android:layout_height="wrap_content"
102             android:layout_gravity="bottom|end"
103             android:layout_weight="0"
104             android:width="0dp"
105             android:foregroundGravity="bottom"
106             android:gravity="bottom|end"
107             android:hint="@string/zero_amount"
108             android:imeOptions="actionNext"
109             android:inputType="number|numberSigned|numberDecimal"
110             android:minEms="4"
111             android:selectAllOnFocus="true"
112             android:textAlignment="viewEnd"
113             app:layout_constraintBottom_toBottomOf="parent"
114             app:layout_constraintLeft_toLeftOf="parent"
115             app:layout_constraintRight_toLeftOf="@id/currency"
116             app:layout_constraintTop_toTopOf="parent"
117             app:layout_constraintWidth_min="@dimen/text_margin"
118             />
119
120         <TextView
121             android:id="@+id/currency"
122             style="@style/TextAppearance.AppCompat.Widget.Button"
123             android:layout_width="wrap_content"
124             android:layout_height="wrap_content"
125             android:layout_gravity="center_vertical"
126             android:gravity="center_horizontal"
127             android:minWidth="30dp"
128             android:text="@string/currency_symbol"
129             android:textAllCaps="false"
130             app:layout_constraintBottom_toBottomOf="parent"
131             app:layout_constraintRight_toRightOf="parent"
132             app:layout_constraintTop_toTopOf="parent"
133             />
134     </androidx.constraintlayout.widget.ConstraintLayout>
135
136 </androidx.constraintlayout.widget.ConstraintLayout>