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