-
-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathwidget_entry.xml
More file actions
54 lines (51 loc) · 2.09 KB
/
widget_entry.xml
File metadata and controls
54 lines (51 loc) · 2.09 KB
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
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Nextcloud Notes - Android Client
~
~ SPDX-FileCopyrightText: 2017-2025 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: GPL-3.0-or-later
-->
<LinearLayout 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/widget_note_list_entry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:paddingVertical="@dimen/spacer_1x"
android:paddingStart="@null"
android:paddingEnd="@dimen/spacer_1hx">
<ImageView
android:id="@+id/widget_entry_fav_icon"
android:layout_width="@dimen/widget_note_list_fav_icon_width"
android:layout_height="@dimen/widget_note_list_fav_icon_height"
android:layout_gravity="center_vertical"
android:contentDescription="@string/widget_entry_fav_contentDescription"
android:paddingStart="@dimen/widget_note_list_inner_padding"
android:paddingEnd="@dimen/widget_note_list_outer_padding"
app:srcCompat="@drawable/ic_star_yellow_24dp" />
<TextView
android:id="@+id/widget_entry_title"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:textStyle="bold"
android:textColor="@color/widget_foreground"
android:textSize="14sp"
tools:text="First note" />
<TextView
android:id="@+id/widget_entry_category"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingHorizontal="8dp"
android:paddingVertical="4dp"
android:background="@drawable/category_widget_background"
android:textSize="12sp"
android:gravity="center"
android:visibility="gone"
tools:visibility="visible"
tools:text="Important"/>
</LinearLayout>