]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/no_profiles.xml
rearrangement
[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 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     android:id="@+id/no_profiles_layout"
21     android:layout_width="match_parent"
22     android:layout_height="match_parent"
23     android:background="?table_row_dark_bg"
24     android:visibility="visible">
25
26     <FrameLayout
27         android:id="@+id/welcome_header"
28         android:layout_width="match_parent"
29         android:layout_height="wrap_content"
30         app:layout_constraintEnd_toEndOf="parent"
31         app:layout_constraintStart_toStartOf="parent"
32         app:layout_constraintTop_toTopOf="parent">
33
34         <include layout="@layout/nav_header_layout" />
35     </FrameLayout>
36
37     <androidx.constraintlayout.widget.ConstraintLayout
38         android:layout_width="0dp"
39         android:layout_height="0dp"
40         app:layout_constraintTop_toBottomOf="@id/welcome_header"
41         app:layout_constraintStart_toStartOf="parent"
42         app:layout_constraintEnd_toEndOf="parent"
43         app:layout_constraintBottom_toBottomOf="parent"
44         android:padding="@dimen/activity_horizontal_margin">
45
46         <TextView
47             android:id="@+id/textView"
48             android:layout_width="wrap_content"
49             android:layout_height="wrap_content"
50             android:layout_marginTop="48dp"
51             android:text="@string/text_welcome"
52             android:textColor="?textColor"
53             android:textSize="48sp"
54             app:layout_constraintEnd_toEndOf="parent"
55             app:layout_constraintStart_toStartOf="parent"
56             app:layout_constraintTop_toTopOf="parent" />
57
58         <TextView
59             android:id="@+id/textView3"
60             android:layout_width="wrap_content"
61             android:layout_height="wrap_content"
62             android:layout_marginStart="8dp"
63             android:layout_marginTop="24dp"
64             android:layout_marginEnd="8dp"
65             android:text="@string/text_welcome_profile_needed"
66             android:textColor="?textColor"
67             android:textSize="20sp"
68             app:layout_constraintEnd_toEndOf="parent"
69             app:layout_constraintStart_toStartOf="parent"
70             app:layout_constraintTop_toBottomOf="@+id/textView" />
71
72         <Button
73             android:id="@+id/btn_no_profiles_add"
74             android:layout_width="wrap_content"
75             android:layout_height="wrap_content"
76             android:layout_marginStart="8dp"
77             android:layout_marginTop="24dp"
78             android:layout_marginEnd="8dp"
79             android:layout_marginBottom="8dp"
80             android:backgroundTint="?colorAccent"
81             android:textColor="@color/design_default_color_on_primary"
82             android:drawablePadding="16dp"
83             android:text="@string/create_profile_label"
84             app:layout_constraintBottom_toBottomOf="parent"
85             app:layout_constraintEnd_toEndOf="parent"
86             app:layout_constraintStart_toStartOf="parent"
87             app:layout_constraintTop_toBottomOf="@+id/textView3" />
88     </androidx.constraintlayout.widget.ConstraintLayout>
89 </androidx.constraintlayout.widget.ConstraintLayout>