]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/profile_list_content.xml
f5b26d0c337dcd3522e9522773edacef3e54d668
[mobile-ledger.git] / app / src / main / res / layout / profile_list_content.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   ~ Copyright © 2019 Damyan Ivanov.
4   ~ This file is part of MoLe.
5   ~ MoLe is free software: you can distribute it and/or modify it
6   ~ under the term of the GNU General Public License as published by
7   ~ the Free Software Foundation, either version 3 of the License, or
8   ~ (at your opinion), any later version.
9   ~
10   ~ MoLe is distributed in the hope that it will be useful,
11   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
12   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13   ~ GNU General Public License terms for details.
14   ~
15   ~ You should have received a copy of the GNU General Public License
16   ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
17   -->
18
19 <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
20     xmlns:app="http://schemas.android.com/apk/res-auto"
21     xmlns:tools="http://schemas.android.com/tools"
22     android:id="@+id/profile_list_item"
23     android:layout_width="match_parent"
24     android:layout_height="wrap_content"
25     android:layout_gravity="center_horizontal"
26     android:foregroundGravity="center_vertical">
27
28     <TextView
29         android:id="@+id/colorTag"
30         android:layout_width="@dimen/activity_horizontal_margin"
31         android:layout_height="0dp"
32         android:background="?colorPrimary"
33         app:layout_constraintBottom_toBottomOf="parent"
34         app:layout_constraintStart_toStartOf="parent"
35         app:layout_constraintTop_toTopOf="parent" />
36
37     <TextView
38         android:id="@+id/profile_list_edit_button"
39         android:layout_width="wrap_content"
40         android:layout_height="wrap_content"
41         android:layout_marginEnd="16dp"
42         android:layout_weight="9"
43         android:drawableStart="@drawable/ic_mode_edit_black_24dp"
44         android:padding="8dp"
45         app:layout_constraintBottom_toBottomOf="parent"
46         app:layout_constraintEnd_toEndOf="parent"
47         app:layout_constraintTop_toTopOf="parent" />
48
49     <RadioButton
50         android:id="@+id/profile_list_radio"
51         android:layout_width="wrap_content"
52         android:layout_height="wrap_content"
53         android:layout_marginStart="16dp"
54         android:layout_weight="9"
55         app:layout_constraintBottom_toBottomOf="parent"
56         app:layout_constraintStart_toStartOf="parent"
57         app:layout_constraintTop_toTopOf="parent"
58         tools:ignore="HardcodedText" />
59
60     <TextView
61         android:id="@+id/title"
62         style="@style/TextAppearance.AppCompat.Large"
63         android:layout_width="0dp"
64         android:layout_height="wrap_content"
65         android:layout_marginStart="16dp"
66         android:layout_marginTop="@dimen/nav_header_vertical_spacing"
67         android:layout_marginEnd="16dp"
68         android:text="Profile name"
69         app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"
70         app:layout_constraintStart_toEndOf="@id/profile_list_radio"
71         app:layout_constraintTop_toTopOf="parent"
72         tools:ignore="HardcodedText" />
73
74     <TextView
75         android:id="@+id/subtitle"
76         style="@style/TextAppearance.AppCompat.Medium"
77         android:layout_width="0dp"
78         android:layout_height="wrap_content"
79         android:layout_marginStart="16dp"
80         android:layout_marginEnd="16dp"
81         android:layout_marginBottom="@dimen/nav_header_vertical_spacing"
82         android:text="Sub-heading"
83         app:layout_constraintBottom_toBottomOf="parent"
84         app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"
85         app:layout_constraintStart_toEndOf="@id/profile_list_radio"
86         app:layout_constraintTop_toBottomOf="@id/title"
87         tools:ignore="HardcodedText" />
88
89
90 </android.support.constraint.ConstraintLayout>