From 3e7cff024e9975c181f85f1d08e701451e77625e Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Fri, 14 Jan 2022 14:43:24 -0500 Subject: [PATCH] Fix notif log header overlap By matching it to notification history Test: with low screen density and large text Fixes: 209635125 Change-Id: I8e4334b7ed0585986d4a38b4877ba8c23458e8a9 --- res/layout/notification_log_row.xml | 58 ++++++++++++----------------- 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/res/layout/notification_log_row.xml b/res/layout/notification_log_row.xml index fea8a290efa..847a699386b 100644 --- a/res/layout/notification_log_row.xml +++ b/res/layout/notification_log_row.xml @@ -24,62 +24,57 @@ android:background="?android:attr/selectableItemBackground" > - + android:minHeight="@*android:dimen/status_bar_icon_size" + android:gravity="center_vertical" + android:layout_marginBottom="11dp"> + android:scaleType="centerInside" /> @@ -87,19 +82,14 @@ android:id="@+id/timestamp" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:paddingTop="13dp" - android:paddingBottom="13dp" - android:layout_alignBottom="@android:id/widget_frame" android:layout_alignParentEnd="true" - android:layout_alignTop="@android:id/widget_frame" - android:layout_centerVertical="true" android:ellipsize="end" android:singleLine="true" - android:textColor="?android:attr/textColorPrimary" - android:textAppearance="?android:attr/textAppearanceSmall" + android:textSize="12sp" + android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification" android:textAlignment="viewEnd" - /> - + /> +