]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/profile_list_content.xml
whitespace
[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 <androidx.constraintlayout.widget.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:animateLayoutChanges="true"
24     android:layout_width="match_parent"
25     android:layout_height="@dimen/thumb_row_height"
26     android:layout_gravity="center_horizontal"
27     android:foregroundGravity="center_vertical">
28
29     <LinearLayout
30         android:id="@+id/handle_and_tag"
31         android:layout_width="56dp"
32         android:layout_height="match_parent"
33         android:orientation="horizontal"
34         app:layout_constraintStart_toStartOf="parent"
35         app:layout_constraintTop_toTopOf="parent">
36
37         <ImageView
38             android:id="@+id/profile_list_rearrange_handle"
39             android:layout_width="40dp"
40             android:layout_height="match_parent"
41             android:layout_margin="8dp"
42             android:layout_weight="9"
43             android:background="@drawable/ic_unfold_more_black_24dp"
44             android:contentDescription="@string/profile_list_rearrange_handle_label"
45             app:layout_constraintBottom_toBottomOf="parent"
46             app:layout_constraintStart_toStartOf="parent"
47             app:layout_constraintTop_toTopOf="parent" />
48
49         <TextView
50             android:id="@+id/colorTag"
51             android:layout_width="16dp"
52             android:layout_height="match_parent"
53             android:layout_marginTop="6dp"
54             android:layout_marginBottom="6dp"
55             android:background="?colorPrimary" />
56     </LinearLayout>
57
58     <TextView
59         android:id="@+id/profile_list_edit_button"
60         android:layout_width="wrap_content"
61         android:layout_height="wrap_content"
62         android:layout_marginEnd="8dp"
63         android:layout_weight="9"
64         android:drawableStart="@drawable/ic_mode_edit_black_24dp"
65         android:padding="8dp"
66         android:visibility="gone"
67         app:layout_constraintBottom_toBottomOf="parent"
68         app:layout_constraintEnd_toEndOf="parent"
69         app:layout_constraintTop_toTopOf="parent" />
70
71     <TextView
72         android:id="@+id/title"
73         style="@style/TextAppearance.AppCompat.Medium"
74         android:layout_width="0dp"
75         android:layout_height="wrap_content"
76         android:layout_marginStart="8dp"
77         android:layout_marginEnd="8dp"
78         android:gravity="center_vertical"
79         android:paddingStart="@dimen/activity_horizontal_margin"
80         android:text="Profile name"
81         app:layout_constraintBottom_toBottomOf="parent"
82         app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"
83         app:layout_constraintStart_toEndOf="@id/handle_and_tag"
84         app:layout_constraintTop_toTopOf="parent"
85         tools:ignore="HardcodedText" />
86
87     <!--<TextView-->
88         <!--android:id="@+id/subtitle"-->
89         <!--style="@style/TextAppearance.AppCompat.Small"-->
90         <!--android:layout_width="0dp"-->
91         <!--android:layout_height="wrap_content"-->
92         <!--android:layout_marginStart="8dp"-->
93         <!--android:layout_marginEnd="8dp"-->
94         <!--android:layout_marginBottom="4dp"-->
95         <!--android:text="Sub-heading"-->
96         <!--app:layout_constraintBottom_toBottomOf="parent"-->
97         <!--app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"-->
98         <!--app:layout_constraintStart_toEndOf="@id/profile_list_radio"-->
99         <!--app:layout_constraintTop_toBottomOf="@id/title"-->
100         <!--tools:ignore="HardcodedText" />-->
101
102
103 </androidx.constraintlayout.widget.ConstraintLayout>