]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/nav_profile_list_head.xml
3e1234a3d5b736a82100074a3a1d374f7558dba3
[mobile-ledger.git] / app / src / main / res / layout / nav_profile_list_head.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   ~ Copyright © 2019 Damyan Ivanov.
5   ~ This file is part of MoLe.
6   ~ MoLe is free software: you can distribute it and/or modify it
7   ~ under the term of the GNU General Public License as published by
8   ~ the Free Software Foundation, either version 3 of the License, or
9   ~ (at your opinion), any later version.
10   ~
11   ~ MoLe is distributed in the hope that it will be useful,
12   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
13   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14   ~ GNU General Public License terms for details.
15   ~
16   ~ You should have received a copy of the GNU General Public License
17   ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
18   -->
19
20 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
21     xmlns:app="http://schemas.android.com/apk/res-auto"
22     android:layout_width="match_parent"
23     android:layout_height="@dimen/thumb_row_height">
24
25     <ImageView
26         android:id="@+id/nav_new_profile_button"
27         android:layout_width="wrap_content"
28         android:layout_height="wrap_content"
29         android:layout_gravity="center"
30         android:paddingStart="8dp"
31         android:paddingEnd="8dp"
32         android:visibility="gone"
33         app:layout_constraintBottom_toBottomOf="parent"
34         app:layout_constraintEnd_toStartOf="@id/nav_profile_list_head_buttons"
35         app:layout_constraintStart_toEndOf="@id/nav_profiles_label"
36         app:layout_constraintTop_toTopOf="parent"
37         app:srcCompat="@drawable/ic_add_circle_white_24dp"
38         android:contentDescription="@string/icon" />
39
40     <LinearLayout
41         android:id="@+id/nav_profile_list_head_buttons"
42         android:layout_width="wrap_content"
43         android:layout_height="0dp"
44         android:gravity="center_vertical"
45         android:orientation="horizontal"
46         android:paddingStart="16dp"
47         android:paddingEnd="16dp"
48         app:layout_constraintBottom_toBottomOf="parent"
49         app:layout_constraintEnd_toEndOf="parent"
50         app:layout_constraintTop_toTopOf="parent">
51
52         <ImageView
53             android:id="@+id/nav_profiles_cancel_edit"
54             android:layout_width="wrap_content"
55             android:layout_height="wrap_content"
56             android:background="@drawable/ic_clear_accent_24dp"
57             android:gravity="end|center_vertical"
58             android:paddingStart="8dp"
59             android:paddingEnd="8dp"
60             android:visibility="gone"
61             app:layout_constraintBottom_toBottomOf="parent"
62             app:layout_constraintEnd_toEndOf="parent"
63             app:layout_constraintTop_toTopOf="parent" />
64
65         <ImageView
66             android:id="@+id/nav_profiles_start_edit"
67             android:layout_width="wrap_content"
68             android:layout_height="wrap_content"
69             android:background="@drawable/ic_settings_black_24dp"
70             android:gravity="end|center_vertical"
71             android:paddingStart="8dp"
72             android:paddingEnd="8dp"
73             app:layout_constraintBottom_toBottomOf="parent"
74             app:layout_constraintEnd_toEndOf="parent"
75             app:layout_constraintTop_toTopOf="parent" />
76
77     </LinearLayout>
78
79     <TextView
80         android:id="@+id/nav_profiles_label"
81         style="@style/nav_button"
82         android:layout_width="wrap_content"
83         android:layout_height="0dp"
84         android:gravity="start|center_vertical"
85         android:text="@string/profiles"
86         app:layout_constraintBottom_toBottomOf="parent"
87         app:layout_constraintStart_toStartOf="parent"
88         app:layout_constraintTop_toTopOf="parent" />
89
90 </androidx.constraintlayout.widget.ConstraintLayout>