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