1 <?xml version="1.0" encoding="utf-8"?>
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.
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.
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/>.
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"
24 android:animateLayoutChanges="true"
25 android:layout_width="match_parent"
26 android:layout_height="@dimen/thumb_row_height"
27 android:layout_gravity="center_horizontal"
28 android:foregroundGravity="center_vertical">
31 android:id="@+id/colorTag"
32 android:layout_width="16dp"
33 android:layout_height="0dp"
34 android:layout_marginStart="40dp"
35 android:layout_marginTop="4dp"
36 android:layout_marginBottom="4dp"
37 android:background="?colorPrimary"
38 app:layout_constraintBottom_toBottomOf="parent"
39 app:layout_constraintStart_toStartOf="parent"
40 app:layout_constraintTop_toTopOf="parent" />
43 android:id="@+id/profile_list_edit_button"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:layout_marginEnd="8dp"
47 android:layout_weight="9"
48 android:drawableStart="@drawable/ic_mode_edit_black_24dp"
50 app:layout_constraintBottom_toBottomOf="parent"
51 app:layout_constraintEnd_toEndOf="parent"
52 app:layout_constraintTop_toTopOf="parent"
53 android:visibility="invisible"/>
56 android:id="@+id/profile_list_rearrange_handle"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_marginStart="8dp"
60 android:layout_weight="9"
61 android:background="@drawable/ic_unfold_more_black_24dp"
62 android:contentDescription="@string/profile_list_rearrange_handle_label"
63 android:visibility="gone"
64 app:layout_constraintBottom_toBottomOf="parent"
65 app:layout_constraintStart_toStartOf="parent"
66 app:layout_constraintTop_toTopOf="parent" />
69 android:id="@+id/title"
70 style="@style/TextAppearance.AppCompat.Medium"
71 android:layout_width="0dp"
72 android:layout_height="wrap_content"
73 android:layout_marginStart="8dp"
74 android:layout_marginEnd="8dp"
75 android:gravity="center_vertical"
76 android:paddingStart="@dimen/activity_horizontal_margin"
77 android:text="Profile name"
78 app:layout_constraintBottom_toBottomOf="parent"
79 app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"
80 app:layout_constraintStart_toEndOf="@id/colorTag"
81 app:layout_constraintTop_toTopOf="parent"
82 tools:ignore="HardcodedText" />
85 <!--android:id="@+id/subtitle"-->
86 <!--style="@style/TextAppearance.AppCompat.Small"-->
87 <!--android:layout_width="0dp"-->
88 <!--android:layout_height="wrap_content"-->
89 <!--android:layout_marginStart="8dp"-->
90 <!--android:layout_marginEnd="8dp"-->
91 <!--android:layout_marginBottom="4dp"-->
92 <!--android:text="Sub-heading"-->
93 <!--app:layout_constraintBottom_toBottomOf="parent"-->
94 <!--app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"-->
95 <!--app:layout_constraintStart_toEndOf="@id/profile_list_radio"-->
96 <!--app:layout_constraintTop_toBottomOf="@id/title"-->
97 <!--tools:ignore="HardcodedText" />-->
100 </androidx.constraintlayout.widget.ConstraintLayout>