|
4 | 4 |
|
5 | 5 | @author Tobias Kaminsky |
6 | 6 | @author TSI-mc |
7 | | - Copyright (C) 2018 Tobias Kaminsky |
8 | | - Copyright (C) 2018 Nextcloud GmbH. |
| 7 | + Copyright (C) 2023 Andy Scherzinger |
9 | 8 | Copyright (C) 2023 TSI-mc |
| 9 | + Copyright (C) 2018 Tobias Kaminsky |
| 10 | + Copyright (C) 2018 Nextcloud GmbH |
10 | 11 |
|
11 | 12 | This program is free software: you can redistribute it and/or modify |
12 | 13 | it under the terms of the GNU General Public License as published by |
|
22 | 23 | along with this program. If not, see <https://www.gnu.org/licenses/>. |
23 | 24 | --> |
24 | 25 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 26 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
25 | 27 | xmlns:tools="http://schemas.android.com/tools" |
26 | 28 | android:layout_width="match_parent" |
27 | | - android:layout_height="@dimen/notification_row_item_height" |
28 | | - xmlns:app="http://schemas.android.com/apk/res-auto" |
| 29 | + android:layout_height="wrap_content" |
29 | 30 | android:orientation="horizontal" |
| 31 | + android:paddingStart="@dimen/standard_padding" |
30 | 32 | android:paddingTop="@dimen/standard_padding" |
31 | | - android:paddingRight="@dimen/standard_padding" |
| 33 | + android:paddingEnd="@dimen/standard_padding" |
32 | 34 | android:paddingBottom="@dimen/standard_padding" |
33 | | - android:paddingLeft="@dimen/standard_padding" |
34 | 35 | tools:ignore="UseCompoundDrawables"> |
35 | 36 |
|
36 | 37 | <ImageView |
|
45 | 46 | <LinearLayout |
46 | 47 | android:layout_width="match_parent" |
47 | 48 | android:layout_height="wrap_content" |
48 | | - android:orientation="vertical" |
49 | 49 | android:layout_alignTop="@id/icon" |
50 | | - android:layout_toEndOf="@id/icon"> |
| 50 | + android:layout_toEndOf="@id/icon" |
| 51 | + android:orientation="vertical"> |
51 | 52 |
|
52 | 53 | <LinearLayout |
53 | 54 | android:layout_width="match_parent" |
|
59 | 60 | android:layout_width="0dp" |
60 | 61 | android:layout_height="wrap_content" |
61 | 62 | android:layout_weight="1" |
62 | | - android:textSize="@dimen/txt_size_16sp" |
63 | 63 | android:ellipsize="end" |
64 | | - android:textColor="@color/text_color" |
65 | 64 | android:textAppearance="?android:attr/textAppearanceListItem" |
| 65 | + android:textColor="@color/text_color" |
| 66 | + android:textSize="@dimen/txt_size_16sp" |
| 67 | + android:paddingBottom="@dimen/standard_half_padding" |
66 | 68 | tools:text="@string/placeholder_filename" /> |
67 | 69 |
|
68 | 70 | <ImageView |
69 | 71 | android:id="@+id/dismiss" |
70 | 72 | android:layout_width="wrap_content" |
71 | 73 | android:layout_height="wrap_content" |
72 | | - app:tint="@color/secondary_text_color" |
73 | | - android:src="@drawable/ic_close" |
74 | | - android:contentDescription="@string/dismiss_notification_description" /> |
| 74 | + android:contentDescription="@string/dismiss_notification_description" |
| 75 | + android:src="@drawable/ic_close" /> |
75 | 76 | </LinearLayout> |
76 | 77 |
|
77 | 78 | <TextView |
78 | 79 | android:id="@+id/message" |
79 | 80 | android:layout_width="match_parent" |
80 | 81 | android:layout_height="wrap_content" |
81 | 82 | android:ellipsize="end" |
| 83 | + android:textAppearance="?android:attr/textAppearanceListItem" |
82 | 84 | android:textColor="@color/secondary_text_color" |
83 | 85 | android:textSize="@dimen/txt_size_14sp" |
84 | | - tools:text="@string/placeholder_sentence" |
85 | | - android:textAppearance="?android:attr/textAppearanceListItem"/> |
| 86 | + tools:text="@string/placeholder_sentence" /> |
86 | 87 |
|
87 | 88 | <LinearLayout |
88 | 89 | android:id="@+id/buttons" |
89 | 90 | android:layout_width="match_parent" |
90 | 91 | android:layout_height="wrap_content" |
| 92 | + android:gravity="end" |
| 93 | + android:layout_marginEnd="@dimen/notification_list_item_grid_layout_left_start_margin" |
91 | 94 | android:layout_marginTop="@dimen/alternate_half_margin" |
92 | | - android:layout_marginStart="@dimen/notification_list_item_grid_layout_left_start_margin" |
93 | 95 | android:columnCount="3" |
94 | | - android:orientation="horizontal"/> |
| 96 | + android:orientation="horizontal" /> |
95 | 97 |
|
96 | 98 | <TextView |
97 | 99 | android:id="@+id/datetime" |
98 | 100 | android:layout_width="wrap_content" |
99 | 101 | android:layout_height="wrap_content" |
100 | 102 | android:layout_gravity="end" |
101 | 103 | android:ellipsize="end" |
| 104 | + android:textColor="@color/secondary_text_color" |
102 | 105 | android:textSize="@dimen/text_size_13sp" |
103 | | - tools:text="@string/placeholder_sentence" |
104 | | - android:textColor="@color/secondary_text_color"/> |
| 106 | + tools:text="@string/placeholder_sentence" /> |
105 | 107 |
|
106 | 108 | </LinearLayout> |
107 | 109 |
|
|
0 commit comments