diff options
Diffstat (limited to 'res/layout/notification_main.xml')
-rw-r--r-- | res/layout/notification_main.xml | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/res/layout/notification_main.xml b/res/layout/notification_main.xml index d036fe5d2..9c5847f39 100644 --- a/res/layout/notification_main.xml +++ b/res/layout/notification_main.xml @@ -19,43 +19,46 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="horizontal" android:focusable="true" - android:padding="@dimen/notification_padding" android:elevation="@dimen/notification_elevation" > <LinearLayout + android:id="@+id/text_and_background" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:layout_weight="1" - android:gravity="center_vertical"> + android:gravity="center_vertical" + android:background="@color/notification_background_color" + android:paddingStart="@dimen/notification_padding" + android:paddingEnd="@dimen/notification_main_text_padding_end"> <TextView android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" android:textAlignment="viewStart" android:fontFamily="sans-serif" - android:textSize="14sp" - android:textColor="?android:attr/textColorSecondary" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> + android:textSize="@dimen/notification_main_text_size" + android:textColor="?android:attr/textColorPrimary" + android:lines="1" + android:ellipsize="end" /> <TextView android:id="@+id/text" - android:paddingEnd="4dp" - android:textSize="12sp" - android:textAlignment="viewStart" - android:fontFamily="sans-serif" - android:textColor="?android:attr/textColorTertiary" android:layout_width="match_parent" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content" + android:fontFamily="sans-serif" + android:textSize="@dimen/notification_main_text_size" + android:textColor="?android:attr/textColorSecondary" + android:lines="1" + android:ellipsize="end" /> </LinearLayout> <View android:id="@+id/popup_item_icon" android:layout_width="@dimen/notification_icon_size" android:layout_height="@dimen/notification_icon_size" - android:layout_weight="0" - android:layout_gravity="center_vertical" /> + android:layout_marginEnd="@dimen/notification_padding" + android:layout_gravity="center_vertical|end" /> </com.android.launcher3.notification.NotificationMainView> |