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.
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.
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/>.
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 android:orientation="horizontal"
28 android:id="@+id/dummy_text"
29 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"
31 android:visibility="gone"
32 tools:ignore="MissingConstraints"
35 android:id="@+id/new_transaction_date"
36 android:layout_width="94dp"
37 android:layout_height="wrap_content"
38 android:accessibilityTraversalBefore="@+id/new_transaction_description"
39 android:drawableStart="@drawable/ic_event_gray_24dp"
40 android:enabled="true"
41 android:focusable="false"
42 android:gravity="bottom|center"
43 android:hint="@string/new_transaction_date_hint"
44 android:inputType="none"
45 android:nextFocusDown="@+id/new_transaction_acc_1"
46 android:nextFocusForward="@+id/new_transaction_description"
47 android:textAlignment="gravity"
48 android:textCursorDrawable="@android:color/transparent"
49 app:layout_constrainedHeight="true"
50 app:layout_constraintHorizontal_weight="8"
51 app:layout_constraintStart_toStartOf="parent"
52 app:layout_constraintTop_toTopOf="parent"
53 tools:ignore="TextFields"
56 <net.ktnx.mobileledger.ui.AutoCompleteTextViewWithClear
57 android:id="@+id/new_transaction_description"
58 android:layout_width="0dp"
59 android:layout_height="wrap_content"
60 android:layout_gravity="bottom"
61 android:layout_marginStart="8dp"
62 android:accessibilityTraversalAfter="@+id/new_transaction_date"
63 android:foregroundGravity="bottom"
64 android:gravity="bottom"
65 android:hint="@string/new_transaction_description_hint"
66 android:imeOptions="actionNext"
67 android:inputType="text"
68 android:nextFocusLeft="@+id/new_transaction_date"
69 android:nextFocusUp="@+id/new_transaction_date"
70 android:selectAllOnFocus="false"
71 android:singleLine="true"
72 app:layout_constraintEnd_toEndOf="parent"
73 app:layout_constraintHorizontal_weight="30"
74 app:layout_constraintStart_toEndOf="@id/new_transaction_date"
75 app:layout_constraintTop_toTopOf="parent"
78 <androidx.constraintlayout.widget.ConstraintLayout
79 android:id="@+id/transaction_comment_layout"
80 android:layout_width="0dp"
81 android:layout_height="wrap_content"
82 app:layout_constraintEnd_toEndOf="parent"
83 app:layout_constraintStart_toStartOf="parent"
84 app:layout_constraintTop_toBottomOf="@id/new_transaction_description"
88 android:id="@+id/transaction_comment_button"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:background="@drawable/ic_comment_gray_24dp"
92 app:layout_constraintBottom_toBottomOf="parent"
93 app:layout_constraintStart_toStartOf="parent"
94 app:layout_constraintTop_toTopOf="parent"
97 <net.ktnx.mobileledger.ui.EditTextWithClear
98 android:id="@+id/transaction_comment"
99 android:layout_width="0dp"
100 android:layout_height="wrap_content"
101 android:imeOptions="actionNext"
102 android:inputType="text"
103 android:visibility="invisible"
104 app:layout_constraintEnd_toEndOf="parent"
105 app:layout_constraintStart_toEndOf="@id/transaction_comment_button"
106 app:layout_constraintTop_toTopOf="parent"
108 </androidx.constraintlayout.widget.ConstraintLayout>
110 </androidx.constraintlayout.widget.ConstraintLayout>