blob: 874dd48b25c50a40b83a9d8568fda2dcc818fef6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/noteSwipeFrame"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/bg_attention">
<ImageView
android:id="@+id/noteFavoriteLeft"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/button_padding"
android:contentDescription="@string/menu_favorite"
app:srcCompat="@drawable/ic_star_white_24dp" />
<ImageView
android:id="@+id/noteDeleteRight"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="end|center_vertical"
android:layout_marginEnd="@dimen/button_padding"
android:contentDescription="@string/menu_delete"
app:srcCompat="@drawable/ic_delete_white_32dp" />
<LinearLayout
android:id="@+id/noteSwipeable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/list_item_background_selector"
android:baselineAligned="false"
android:gravity="center_vertical"
android:paddingStart="@dimen/spacer_activity_sides"
android:paddingEnd="@null">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="match_parent">
<ImageView
android:id="@+id/noteFavorite"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/menu_favorite"
android:padding="@dimen/spacer_2x"
tools:src="@drawable/ic_star_yellow_24dp" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/noteStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
android:layout_marginTop="12dp"
android:layout_marginEnd="4dp"
android:baseline="14dp"
app:srcCompat="@drawable/ic_sync_blue_18dp" />
</FrameLayout>
<TextView
android:id="@+id/noteTitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginVertical="10sp"
android:layout_weight="1"
android:ellipsize="end"
android:maxLines="1"
android:paddingVertical="@dimen/spacer_2x"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/primary_font_size"
tools:text="@tools:sample/lorem/random" />
<TextView
android:id="@+id/noteCategory"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacer_1x"
android:layout_marginTop="1dp"
android:layout_marginEnd="@dimen/spacer_2x"
android:background="@drawable/border"
android:maxLines="1"
android:paddingHorizontal="@dimen/spacer_1x"
android:paddingBottom="1dp"
android:singleLine="true"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/secondary_font_size"
tools:maxLength="15"
tools:text="@tools:sample/lorem/random" />
<com.google.android.material.button.MaterialButton
android:id="@+id/noteActions"
style="@style/Widget.Material3.Button.IconButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:contentDescription="@string/note_actions"
app:icon="@drawable/ic_dots_vertical"
app:iconTint="?android:textColorPrimary"
app:rippleColor="@color/fg_secondary" />
</LinearLayout>
</FrameLayout>
|