]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/fragment_new_transaction.xml
move new transaction UI into a fragment, have a clean saving progress
[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
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="match_parent"
23     tools:context="net.ktnx.mobileledger.ui.activity.NewTransactionActivity">
24
25     <androidx.recyclerview.widget.RecyclerView
26         android:id="@+id/new_transaction_accounts"
27         android:layout_width="0dp"
28         android:layout_height="0dp"
29         android:paddingStart="@dimen/activity_horizontal_margin"
30         android:paddingEnd="@dimen/activity_horizontal_margin"
31         app:layout_constraintBottom_toBottomOf="parent"
32         app:layout_constraintEnd_toEndOf="parent"
33         app:layout_constraintStart_toStartOf="parent"
34         app:layout_constraintTop_toTopOf="parent"
35         tools:showIn="@layout/activity_new_transaction">
36     </androidx.recyclerview.widget.RecyclerView>
37
38     <com.google.android.material.floatingactionbutton.FloatingActionButton
39         android:id="@+id/fab"
40         android:layout_width="wrap_content"
41         android:layout_height="wrap_content"
42         android:layout_gravity="center"
43         android:layout_marginEnd="@dimen/fab_margin"
44         android:layout_marginBottom="@dimen/fab_margin"
45         android:padding="@dimen/fab_margin"
46         android:tint="@android:color/white"
47         android:visibility="visible"
48         app:backgroundTint="?colorAccent"
49         app:layout_constraintBottom_toBottomOf="parent"
50         app:layout_constraintEnd_toEndOf="parent"
51         app:srcCompat="@drawable/ic_save_white_24dp" />
52
53
54 </androidx.constraintlayout.widget.ConstraintLayout>