]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/nav_profile_list_head.xml
76892beb04d75e59c94d111c67bbf5721b898d52
[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 Mobile-Ledger. 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     android:onClick="navProfilesHeadClicked">
25
26     <ImageView
27         android:id="@+id/nav_profiles_arrow"
28         android:layout_width="wrap_content"
29         android:layout_height="wrap_content"
30         android:background="@drawable/ic_expand_more_black_24dp"
31         android:gravity="start|center_vertical"
32         app:layout_constraintBottom_toBottomOf="parent"
33         app:layout_constraintStart_toEndOf="@id/nav_profiles_label"
34         app:layout_constraintTop_toTopOf="parent" />
35
36     <LinearLayout
37         android:id="@+id/nav_profile_list_head_buttons"
38         android:layout_width="wrap_content"
39         android:layout_height="0dp"
40         android:gravity="center_vertical"
41         android:orientation="horizontal"
42         android:paddingStart="16dp"
43         android:paddingEnd="16dp"
44         app:layout_constraintBottom_toBottomOf="parent"
45         app:layout_constraintEnd_toEndOf="parent"
46         app:layout_constraintTop_toTopOf="parent">
47
48         <ImageView
49             android:id="@+id/nav_profiles_cancel_edit"
50             android:layout_width="wrap_content"
51             android:layout_height="wrap_content"
52             android:background="@drawable/ic_clear_black_24dp"
53             android:gravity="end|center_vertical"
54             android:visibility="gone"
55             app:layout_constraintBottom_toBottomOf="parent"
56             app:layout_constraintEnd_toEndOf="parent"
57             app:layout_constraintTop_toTopOf="parent" />
58
59         <ImageView
60             android:id="@+id/nav_profiles_start_edit"
61             android:layout_width="wrap_content"
62             android:layout_height="wrap_content"
63             android:background="@drawable/ic_settings_black_24dp"
64             android:gravity="end|center_vertical"
65             android:visibility="gone"
66             app:layout_constraintBottom_toBottomOf="parent"
67             app:layout_constraintEnd_toEndOf="parent"
68             app:layout_constraintTop_toTopOf="parent" />
69
70     </LinearLayout>
71
72     <TextView
73         android:id="@+id/nav_profiles_label"
74         style="@style/nav_button"
75         android:layout_width="wrap_content"
76         android:layout_height="0dp"
77         android:drawableStart="@drawable/ic_view_list_black_24dp"
78         android:gravity="start|center_vertical"
79         android:onClick="navProfilesHeadClicked"
80         android:text="@string/profiles"
81         app:layout_constraintBottom_toBottomOf="parent"
82         app:layout_constraintStart_toStartOf="parent"
83         app:layout_constraintTop_toTopOf="parent" />
84
85 </androidx.constraintlayout.widget.ConstraintLayout>