]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/profile_list_content.xml
77d939b245139bc00e1d49ef09538563ae17b149
[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     android:paddingVertical="@dimen/nav_header_vertical_spacing">
28
29     <TextView
30         android:id="@+id/profile_list_edit_button"
31         android:layout_width="wrap_content"
32         android:layout_height="wrap_content"
33         android:layout_marginEnd="16dp"
34         android:layout_weight="9"
35         android:drawableStart="@drawable/ic_mode_edit_black_24dp"
36         android:padding="8dp"
37         app:layout_constraintBottom_toBottomOf="parent"
38         app:layout_constraintEnd_toEndOf="parent"
39         app:layout_constraintTop_toTopOf="parent" />
40
41     <RadioButton
42         android:id="@+id/profile_list_radio"
43         android:layout_width="wrap_content"
44         android:layout_height="wrap_content"
45         android:layout_marginStart="16dp"
46         android:layout_weight="9"
47         app:layout_constraintBottom_toBottomOf="parent"
48         app:layout_constraintStart_toStartOf="parent"
49         app:layout_constraintTop_toTopOf="parent"
50         tools:ignore="HardcodedText" />
51
52     <TextView
53         android:id="@+id/title"
54         style="@style/TextAppearance.AppCompat.Large"
55         android:layout_width="0dp"
56         android:layout_height="wrap_content"
57         android:layout_marginStart="16dp"
58         android:layout_marginEnd="16dp"
59         android:text="Profile name"
60         app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"
61         app:layout_constraintStart_toEndOf="@id/profile_list_radio"
62         app:layout_constraintTop_toTopOf="parent" />
63
64     <TextView
65         android:id="@+id/subtitle"
66         style="@style/TextAppearance.AppCompat.Medium"
67         android:layout_width="0dp"
68         android:layout_height="wrap_content"
69         android:layout_marginStart="16dp"
70         android:layout_marginEnd="16dp"
71         android:text="Sub-heading"
72         app:layout_constraintBottom_toBottomOf="parent"
73         app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"
74         app:layout_constraintStart_toEndOf="@id/profile_list_radio"
75         app:layout_constraintTop_toBottomOf="@id/title"
76         tools:ignore="HardcodedText" />
77
78
79 </android.support.constraint.ConstraintLayout>