]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/fragment_backups.xml
more pronounced day/month delimiters in the transaction list
[mobile-ledger.git] / app / src / main / res / layout / fragment_backups.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
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
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=".BackupsActivity"
24     >
25     <com.google.android.material.appbar.AppBarLayout
26         android:id="@+id/appbar"
27         android:layout_width="match_parent"
28         android:layout_height="wrap_content"
29         android:fitsSystemWindows="true"
30         android:theme="@style/AppTheme.AppBarOverlay"
31         app:layout_constraintStart_toStartOf="parent"
32         app:layout_constraintTop_toTopOf="parent"
33         >
34         <androidx.appcompat.widget.Toolbar
35             android:id="@+id/toolbar"
36             android:layout_width="match_parent"
37             android:layout_height="match_parent"
38             android:background="?attr/colorPrimary"
39             app:layout_collapseMode="pin"
40             app:popupTheme="@style/AppTheme.PopupOverlay"
41             />
42     </com.google.android.material.appbar.AppBarLayout>
43
44     <ScrollView
45         android:layout_width="0dp"
46         android:layout_height="0dp"
47         app:layout_constraintBottom_toBottomOf="parent"
48         app:layout_constraintEnd_toEndOf="parent"
49         app:layout_constraintStart_toStartOf="parent"
50         app:layout_constraintTop_toBottomOf="@id/appbar"
51         >
52         <androidx.constraintlayout.widget.ConstraintLayout
53             android:layout_width="match_parent"
54             android:layout_height="wrap_content"
55             android:layout_marginHorizontal="@dimen/activity_horizontal_margin"
56             >
57             <TextView
58                 android:id="@+id/backup_header"
59                 style="@style/TextAppearance.MaterialComponents.Headline4"
60                 android:layout_width="0dp"
61                 android:layout_height="wrap_content"
62                 android:text="@string/backup_header"
63                 app:layout_constraintEnd_toEndOf="parent"
64                 app:layout_constraintStart_toStartOf="parent"
65                 app:layout_constraintTop_toTopOf="parent"
66                 />
67             <TextView
68                 android:id="@+id/backup_explanation_text"
69                 style="@style/TextAppearance.MaterialComponents.Body1"
70                 android:layout_width="0dp"
71                 android:layout_height="wrap_content"
72                 android:text="@string/backup_explanation"
73                 app:layout_constraintEnd_toEndOf="parent"
74                 app:layout_constraintStart_toStartOf="parent"
75                 app:layout_constraintTop_toBottomOf="@id/backup_header"
76                 />
77             <TextView
78                 android:id="@+id/backup_button"
79                 style="@style/TextAppearance.MaterialComponents.Button"
80                 android:layout_width="wrap_content"
81                 android:layout_height="wrap_content"
82                 android:layout_marginVertical="@dimen/text_margin"
83                 android:drawablePadding="@dimen/text_margin"
84                 android:gravity="center_vertical"
85                 android:text="@string/backup_button_label"
86                 app:drawableStartCompat="@drawable/ic_baseline_backup_24"
87                 app:layout_constraintEnd_toEndOf="parent"
88                 app:layout_constraintHorizontal_bias="1"
89                 app:layout_constraintStart_toStartOf="parent"
90                 app:layout_constraintTop_toBottomOf="@id/backup_explanation_text"
91                 />
92             <TextView
93                 android:id="@+id/restore_header"
94                 style="@style/TextAppearance.MaterialComponents.Headline4"
95                 android:layout_width="0dp"
96                 android:layout_height="wrap_content"
97                 android:layout_marginTop="@dimen/text_margin"
98                 android:text="@string/restore_header"
99                 app:layout_constraintEnd_toEndOf="parent"
100                 app:layout_constraintStart_toStartOf="parent"
101                 app:layout_constraintTop_toBottomOf="@id/backup_button"
102                 />
103             <TextView
104                 android:id="@+id/restore_explanation_text"
105                 style="@style/TextAppearance.MaterialComponents.Body1"
106                 android:layout_width="0dp"
107                 android:layout_height="wrap_content"
108                 android:text="@string/restore_explanation"
109                 app:layout_constraintEnd_toEndOf="parent"
110                 app:layout_constraintStart_toStartOf="parent"
111                 app:layout_constraintTop_toBottomOf="@id/restore_header"
112                 />
113             <TextView
114                 android:id="@+id/restore_button"
115                 style="@style/TextAppearance.MaterialComponents.Button"
116                 android:layout_width="wrap_content"
117                 android:layout_height="wrap_content"
118                 android:layout_marginVertical="@dimen/text_margin"
119                 android:drawablePadding="@dimen/text_margin"
120                 android:gravity="center_vertical"
121                 android:text="@string/restore_button_label"
122                 app:drawableStartCompat="@drawable/ic_baseline_restore_24"
123                 app:layout_constraintEnd_toEndOf="parent"
124                 app:layout_constraintHorizontal_bias="1"
125                 app:layout_constraintStart_toStartOf="parent"
126                 app:layout_constraintTop_toBottomOf="@id/restore_explanation_text"
127                 />
128         </androidx.constraintlayout.widget.ConstraintLayout>
129     </ScrollView>
130 </androidx.constraintlayout.widget.ConstraintLayout>