|
2 | 2 | <!-- |
3 | 3 | ~ Nextcloud Notes - Android Client |
4 | 4 | ~ |
5 | | - ~ SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors |
| 5 | + ~ SPDX-FileCopyrightText: 2017-2025 Nextcloud GmbH and Nextcloud contributors |
6 | 6 | ~ SPDX-License-Identifier: GPL-3.0-or-later |
7 | 7 | --> |
8 | 8 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
12 | 12 | android:layout_width="match_parent" |
13 | 13 | android:layout_height="wrap_content" |
14 | 14 | android:orientation="horizontal" |
| 15 | + android:gravity="center" |
15 | 16 | android:paddingVertical="@dimen/spacer_1x" |
16 | 17 | android:paddingStart="@null" |
17 | 18 | android:paddingEnd="@dimen/spacer_1hx"> |
|
22 | 23 | android:layout_height="@dimen/widget_note_list_fav_icon_height" |
23 | 24 | android:layout_gravity="center_vertical" |
24 | 25 | android:contentDescription="@string/widget_entry_fav_contentDescription" |
25 | | - android:foregroundGravity="center_vertical" |
26 | 26 | android:paddingStart="@dimen/widget_note_list_inner_padding" |
27 | 27 | android:paddingEnd="@dimen/widget_note_list_outer_padding" |
28 | 28 | app:srcCompat="@drawable/ic_star_yellow_24dp" /> |
29 | 29 |
|
30 | 30 | <TextView |
31 | | - android:id="@+id/widget_entry_content_tv" |
| 31 | + android:id="@+id/widget_entry_title" |
32 | 32 | android:layout_width="0dp" |
33 | | - android:layout_height="wrap_content" |
34 | | - android:layout_gravity="center_vertical" |
| 33 | + android:layout_height="match_parent" |
35 | 34 | android:layout_weight="1" |
36 | | - android:ellipsize="end" |
37 | | - android:gravity="center_vertical" |
38 | | - android:lines="1" |
39 | | - android:paddingStart="@dimen/widget_note_list_inner_padding" |
40 | | - android:paddingEnd="@dimen/widget_note_list_outer_padding" |
| 35 | + android:layout_gravity="center_vertical" |
| 36 | + android:textStyle="bold" |
41 | 37 | android:textColor="@color/widget_foreground" |
42 | 38 | android:textSize="14sp" |
43 | | - tools:text="@tools:sample/lorem/random" /> |
| 39 | + tools:text="First note" /> |
44 | 40 |
|
| 41 | + <TextView |
| 42 | + android:id="@+id/widget_entry_category" |
| 43 | + android:layout_width="wrap_content" |
| 44 | + android:layout_height="wrap_content" |
| 45 | + android:layout_gravity="center_vertical" |
| 46 | + android:paddingHorizontal="8dp" |
| 47 | + android:paddingVertical="4dp" |
| 48 | + android:background="@drawable/border" |
| 49 | + android:textSize="12sp" |
| 50 | + android:textColor="@color/category_border" |
| 51 | + android:gravity="center" |
| 52 | + android:visibility="gone" |
| 53 | + tools:visibility="visible" |
| 54 | + tools:text="Important"/> |
45 | 55 | </LinearLayout> |
0 commit comments