]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/fragment_new_transaction.xml
NT fragment: correct logic when determining whether to keep the entered data upon...
[mobile-ledger.git] / app / src / main / res / layout / fragment_new_transaction.xml
1 <!--
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 <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
18     xmlns:app="http://schemas.android.com/apk/res-auto"
19     android:layout_width="match_parent"
20     android:layout_height="match_parent">
21
22     <androidx.constraintlayout.widget.ConstraintLayout xmlns:tools="http://schemas.android.com/tools"
23         android:layout_width="match_parent"
24         android:layout_height="match_parent"
25         tools:context="net.ktnx.mobileledger.ui.activity.NewTransactionActivity">
26
27         <androidx.recyclerview.widget.RecyclerView
28             android:id="@+id/new_transaction_accounts"
29             android:layout_width="0dp"
30             android:layout_height="0dp"
31             android:paddingStart="@dimen/activity_horizontal_margin"
32             android:paddingEnd="@dimen/activity_horizontal_margin"
33             app:layout_constraintBottom_toBottomOf="parent"
34             app:layout_constraintEnd_toEndOf="parent"
35             app:layout_constraintStart_toStartOf="parent"
36             app:layout_constraintTop_toTopOf="parent"
37             tools:showIn="@layout/activity_new_transaction" />
38
39
40     </androidx.constraintlayout.widget.ConstraintLayout>
41
42     <com.google.android.material.floatingactionbutton.FloatingActionButton
43         android:id="@+id/fab"
44         android:layout_width="wrap_content"
45         android:layout_height="wrap_content"
46         android:layout_gravity="bottom|end"
47         android:layout_marginEnd="@dimen/fab_margin"
48         android:layout_marginBottom="@dimen/fab_margin"
49         android:padding="@dimen/fab_margin"
50         android:tint="@android:color/white"
51         android:visibility="visible"
52         app:backgroundTint="?colorAccent"
53         app:layout_constraintBottom_toBottomOf="parent"
54         app:layout_constraintEnd_toEndOf="parent"
55         app:srcCompat="@drawable/ic_save_white_24dp" />
56 </androidx.coordinatorlayout.widget.CoordinatorLayout>