]> git.ktnx.net Git - mobile-ledger.git/blob - layout/activity_new_transaction.xml
bump androidx.constraintlayout library version
[mobile-ledger.git] / layout / activity_new_transaction.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
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.coordinatorlayout.widget.CoordinatorLayout 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=".ui.activity.NewTransactionActivity">
24
25     <androidx.constraintlayout.widget.ConstraintLayout
26         android:layout_width="match_parent"
27         android:layout_height="match_parent">
28
29         <com.google.android.material.appbar.AppBarLayout
30             android:layout_width="match_parent"
31             android:layout_height="wrap_content"
32             android:id="@+id/toolbar_layout"
33             android:theme="@style/AppTheme.AppBarOverlay"
34             app:layout_constraintTop_toTopOf="parent"
35             app:layout_constraintStart_toStartOf="parent"
36             app:layout_constraintEnd_toEndOf="parent"
37             >
38
39             <androidx.appcompat.widget.Toolbar
40                 android:id="@+id/toolbar"
41                 android:layout_width="match_parent"
42                 android:layout_height="?attr/actionBarSize"
43                 android:background="?attr/colorPrimary"
44                 app:popupTheme="@style/AppTheme.PopupOverlay" />
45
46         </com.google.android.material.appbar.AppBarLayout>
47
48         <androidx.recyclerview.widget.RecyclerView
49             android:id="@+id/new_transaction_accounts"
50             android:layout_width="0dp"
51             android:layout_height="0dp"
52             android:paddingStart="@dimen/activity_horizontal_margin"
53             android:paddingEnd="@dimen/activity_horizontal_margin"
54             app:layout_constraintBottom_toBottomOf="parent"
55             app:layout_constraintEnd_toEndOf="parent"
56             app:layout_constraintStart_toStartOf="parent"
57             app:layout_constraintTop_toBottomOf="@id/toolbar_layout">
58
59         </androidx.recyclerview.widget.RecyclerView>
60
61         <ProgressBar
62             android:id="@+id/save_transaction_progress"
63             android:layout_width="80dp"
64             android:layout_height="80dp"
65             android:layout_margin="4dp"
66             android:indeterminate="true"
67             android:indeterminateTint="@color/colorPrimary"
68             android:visibility="invisible"
69             app:layout_constraintBottom_toBottomOf="parent"
70             app:layout_constraintEnd_toEndOf="parent" />
71
72         <com.google.android.material.floatingactionbutton.FloatingActionButton
73             android:id="@+id/fab"
74             android:layout_width="wrap_content"
75             android:layout_height="wrap_content"
76             android:layout_gravity="center"
77             android:padding="@dimen/fab_margin"
78             android:tint="@android:color/white"
79             android:visibility="gone"
80             app:backgroundTint="?colorAccent"
81             app:layout_constraintBottom_toBottomOf="@id/save_transaction_progress"
82             app:layout_constraintEnd_toEndOf="@id/save_transaction_progress"
83             app:layout_constraintStart_toStartOf="@id/save_transaction_progress"
84             app:layout_constraintTop_toTopOf="@id/save_transaction_progress"
85             app:srcCompat="@drawable/ic_save_white_24dp" />
86
87     </androidx.constraintlayout.widget.ConstraintLayout>
88
89 </androidx.coordinatorlayout.widget.CoordinatorLayout>