]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/fragment_new_transaction.xml
shuffle some classes under proper packages
[mobile-ledger.git] / app / src / main / res / layout / fragment_new_transaction.xml
1 <!--
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 <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
18     xmlns:app="http://schemas.android.com/apk/res-auto"
19     xmlns:tools="http://schemas.android.com/tools"
20     android:layout_width="match_parent"
21     android:layout_height="match_parent">
22
23     <androidx.constraintlayout.widget.ConstraintLayout
24         android:layout_width="match_parent"
25         android:layout_height="match_parent"
26         android:animateLayoutChanges="true"
27         tools:context="net.ktnx.mobileledger.ui.new_transaction.NewTransactionActivity"
28         >
29
30         <ProgressBar
31             android:id="@+id/progressBar"
32             style="@style/Widget.AppCompat.ProgressBar"
33             android:layout_width="wrap_content"
34             android:layout_height="wrap_content"
35             android:layout_marginStart="8dp"
36             android:layout_marginEnd="8dp"
37             android:indeterminate="true"
38             android:indeterminateBehavior="cycle"
39             android:visibility="invisible"
40             app:layout_constraintBottom_toBottomOf="parent"
41             app:layout_constraintEnd_toEndOf="parent"
42             app:layout_constraintStart_toStartOf="parent"
43             app:layout_constraintTop_toTopOf="parent" />
44
45         <androidx.recyclerview.widget.RecyclerView
46             android:id="@+id/new_transaction_accounts"
47             android:layout_width="0dp"
48             android:layout_height="0dp"
49             android:orientation="vertical"
50             android:paddingStart="@dimen/activity_horizontal_margin"
51             android:paddingEnd="@dimen/activity_horizontal_margin"
52             app:layout_constraintBottom_toBottomOf="parent"
53             app:layout_constraintEnd_toEndOf="parent"
54             app:layout_constraintStart_toStartOf="parent"
55             app:layout_constraintTop_toTopOf="parent"
56             tools:showIn="@layout/activity_new_transaction" />
57
58
59     </androidx.constraintlayout.widget.ConstraintLayout>
60
61     <com.google.android.material.floatingactionbutton.FloatingActionButton
62         android:id="@+id/fab"
63         android:layout_width="wrap_content"
64         android:layout_height="wrap_content"
65         android:layout_gravity="bottom|end"
66         android:layout_marginEnd="@dimen/fab_margin"
67         android:layout_marginBottom="@dimen/fab_margin"
68         android:padding="@dimen/fab_margin"
69         android:tint="?android:attr/colorBackground"
70         android:visibility="visible"
71         app:backgroundTint="?colorSecondary"
72         app:layout_constraintBottom_toBottomOf="parent"
73         app:layout_constraintEnd_toEndOf="parent"
74         app:srcCompat="@drawable/ic_save_white_24dp" />
75 </androidx.coordinatorlayout.widget.CoordinatorLayout>