]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/no_profiles.xml
a welcome screen directs to the new profile activity when there are no profiles defined
[mobile-ledger.git] / app / src / main / res / layout / no_profiles.xml
1 <?xml version="1.0" encoding="utf-8"?><!--
2   ~ Copyright © 2019 Damyan Ivanov.
3   ~ This file is part of Mobile-Ledger.
4   ~ Mobile-Ledger 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   ~ Mobile-Ledger 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 Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
16   -->
17
18 <android.support.constraint.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:id="@+id/no_profiles_layout"
22     android:layout_width="match_parent"
23     android:layout_height="match_parent"
24     android:background="@color/colorPrimaryDark"
25     tools:showIn="@layout/activity_main">
26
27     <TextView
28         android:id="@+id/textView"
29         android:layout_width="wrap_content"
30         android:layout_height="wrap_content"
31         android:layout_marginTop="48dp"
32         android:text="@string/text_welcome"
33         android:textSize="52sp"
34         app:layout_constraintEnd_toEndOf="parent"
35         app:layout_constraintStart_toStartOf="parent"
36         app:layout_constraintTop_toTopOf="parent" />
37
38     <TextView
39         android:id="@+id/textView3"
40         android:layout_width="wrap_content"
41         android:layout_height="wrap_content"
42         android:layout_marginStart="8dp"
43         android:layout_marginTop="24dp"
44         android:layout_marginEnd="8dp"
45         android:text="@string/text_welcome_profile_needed"
46         android:textSize="20sp"
47         app:layout_constraintEnd_toEndOf="parent"
48         app:layout_constraintStart_toStartOf="parent"
49         app:layout_constraintTop_toBottomOf="@+id/textView" />
50
51     <Button
52         android:id="@+id/btn_no_profiles_add"
53         android:layout_width="wrap_content"
54         android:layout_height="wrap_content"
55         android:layout_marginStart="8dp"
56         android:layout_marginTop="24dp"
57         android:layout_marginEnd="8dp"
58         android:layout_marginBottom="8dp"
59         android:backgroundTint="@color/colorPrimary"
60         android:drawablePadding="16dp"
61         android:text="@string/create_profile_label"
62         app:layout_constraintBottom_toBottomOf="parent"
63         app:layout_constraintEnd_toEndOf="parent"
64         app:layout_constraintStart_toStartOf="parent"
65         app:layout_constraintTop_toBottomOf="@+id/textView3" />
66 </android.support.constraint.ConstraintLayout>