+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?><!--
- ~ Copyright © 2019 Damyan Ivanov.
- ~ This file is part of MoLe.
- ~ MoLe is free software: you can distribute it and/or modify it
- ~ under the term of the GNU General Public License as published by
- ~ the Free Software Foundation, either version 3 of the License, or
- ~ (at your opinion), any later version.
- ~
- ~ MoLe is distributed in the hope that it will be useful,
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ~ GNU General Public License terms for details.
- ~
- ~ You should have received a copy of the GNU General Public License
- ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
- -->
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:animateLayoutChanges="false"
- android:orientation="vertical">
-
- <LinearLayout
- android:id="@+id/ntr_data"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <EditText
- android:id="@+id/new_transaction_date"
- android:layout_width="94dp"
- android:layout_height="wrap_content"
- android:accessibilityTraversalBefore="@+id/new_transaction_description"
- android:drawableStart="@drawable/ic_event_gray_24dp"
- android:ems="10"
- android:enabled="true"
- android:focusable="false"
- android:gravity="bottom|center"
- android:hint="@string/new_transaction_date_hint"
- android:inputType="none"
- android:nextFocusDown="@+id/new_transaction_acc_1"
- android:nextFocusForward="@+id/new_transaction_description"
- android:textAlignment="gravity"
- android:textCursorDrawable="@android:color/transparent"
- app:layout_constrainedHeight="true"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintHorizontal_weight="8"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:ignore="TextFields" />
-
- <net.ktnx.mobileledger.ui.AutoCompleteTextViewWithClear
- android:id="@+id/new_transaction_description"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:layout_marginStart="8dp"
- android:accessibilityTraversalAfter="@+id/new_transaction_date"
- android:ems="10"
- android:foregroundGravity="bottom"
- android:gravity="bottom"
- android:hint="@string/new_transaction_description_hint"
- android:imeOptions="actionNext"
- android:inputType="text"
- android:nextFocusLeft="@+id/new_transaction_date"
- android:nextFocusUp="@+id/new_transaction_date"
- android:selectAllOnFocus="false"
- android:singleLine="true"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_weight="30"
- app:layout_constraintStart_toEndOf="@+id/new_transaction_date"
- app:layout_constraintTop_toTopOf="parent" />
- </LinearLayout>
-
- <androidx.constraintlayout.widget.ConstraintLayout
- android:id="@+id/ntr_account"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:animateLayoutChanges="true">
-
- <net.ktnx.mobileledger.ui.AutoCompleteTextViewWithClear
- android:id="@+id/account_row_acc_name"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="9"
- android:width="0dp"
- android:hint="@string/new_transaction_account_hint"
- android:imeOptions="actionNext"
- android:inputType="text"
- android:selectAllOnFocus="false"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
- <TextView
- android:id="@+id/comment_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/ic_comment_gray_24dp"
- app:layout_constraintBottom_toBottomOf="@id/amount_layout"
- app:layout_constraintStart_toStartOf="@+id/ntr_account"
- app:layout_constraintTop_toBottomOf="@+id/account_row_acc_name" />
-
- <EditText
- android:id="@+id/comment"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:hint="@string/transaction_account_comment_hint"
- android:imeOptions="actionNext"
- android:inputType="text"
- android:visibility="gone"
- app:layout_constraintEnd_toEndOf="@+id/ntr_account"
- app:layout_constraintStart_toEndOf="@id/comment_button"
- app:layout_constraintTop_toBottomOf="@id/account_row_acc_name" />
-
- <androidx.constraintlayout.widget.ConstraintLayout
- android:id="@+id/amount_layout"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toBottomOf="@id/comment">
-
- <EditText
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@id/currency"
- android:id="@+id/account_row_acc_amounts"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom|end"
- android:layout_weight="0"
- android:width="0dp"
- android:foregroundGravity="bottom"
- android:gravity="bottom|end"
- android:hint="@string/zero_amount"
- android:imeOptions="actionNext"
- android:inputType="numberSigned|numberDecimal|number"
- android:minWidth="80sp"
- android:selectAllOnFocus="true"
- android:textAlignment="viewEnd"
- app:layout_constraintWidth_min="@dimen/text_margin"/>
-
- <TextView
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- android:id="@+id/currency"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:text="@string/currency_symbol"
- style="@style/TextAppearance.AppCompat.Widget.Button"
- android:textAllCaps="false"
- android:visibility="gone"
- android:minWidth="24dp"
- android:gravity="center_horizontal"/>
- </androidx.constraintlayout.widget.ConstraintLayout>
-
- </androidx.constraintlayout.widget.ConstraintLayout>
-
- <FrameLayout
- android:id="@+id/ntr_padding"
- android:layout_width="match_parent"
- android:layout_height="80dp"
- android:minHeight="80dp">
-
- </FrameLayout>
-
-</LinearLayout>
\ No newline at end of file