blob: 1350831fc27612aa2dde8026a427c3558c3416f3 (
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/bg_attention">
<ImageView
android:id="@+id/noteDeleteLeft"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/button_padding"
android:layout_marginStart="@dimen/button_padding"
android:contentDescription="@string/menu_delete"
android:src="@drawable/ic_action_delete" />
<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:layout_marginRight="@dimen/button_padding"
android:contentDescription="@string/menu_delete"
android:src="@drawable/ic_action_delete" />
<android.support.v7.widget.LinearLayoutCompat
android:id="@+id/noteSwipeable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/list_item_background_selector">
<ImageView
android:id="@+id/noteFavorite"
android:layout_centerVertical="true"
android:padding="16dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"/>
<android.support.v7.widget.LinearLayoutCompat
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingRight="16dp"
android:paddingBottom="16dp"
android:orientation="vertical"
android:background="@drawable/list_item_background_selector">
<android.support.v7.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/list_item_background_selector">
<TextView
android:id="@+id/noteTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:layout_weight="1"
android:textColor="@drawable/list_item_color_selector"
android:textSize="16sp" />
<ImageView
android:id="@+id/noteStatus"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:baseline="14dp"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:src="@drawable/ic_sync_blue_18dp" />
</android.support.v7.widget.LinearLayoutCompat>
<android.support.v7.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/list_item_background_selector">
<TextView
android:id="@+id/noteExcerpt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:ellipsize="end"
android:maxLines="1"
android:paddingBottom="1dp"
android:paddingTop="1dp"
android:layout_weight="1"
android:textColor="@drawable/list_item_color_selector_low"
android:textSize="14sp" />
<TextView
android:id="@+id/noteCategory"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:background="@drawable/border"
android:maxLines="1"
android:paddingBottom="1dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="1dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:singleLine="true"
android:textColor="@drawable/list_item_color_selector"
android:textSize="14sp"/>
</android.support.v7.widget.LinearLayoutCompat>
</android.support.v7.widget.LinearLayoutCompat>
</android.support.v7.widget.LinearLayoutCompat>
<ImageView
android:layout_width="match_parent"
android:layout_height="1px"
android:src="@color/separator" />
</FrameLayout>
|