From e7304b0c31452155c9eba2c5b44809bf51489e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Kurucz?= Date: Fri, 29 Jul 2022 14:32:26 +0000 Subject: [PATCH] Fix overlapping text in NotificationHistoryActivity Align the TextViews to end at the start at the expand button. Make the label TextView single line and ellipsize it at the end. Remove the RelativeLayout and flatten the view hierarchy. Update background to fix the corners of the ripple effect. Remove unused drawable xml. Test: manual (a custom app with a long app name sends a notification) Fixes: 239066636 Change-Id: I07c82c382138309417e3394574811afb7423c1e7 --- res/drawable/button_ripple_radius.xml | 26 ----- .../notification_history_app_layout.xml | 108 ++++++++++-------- 2 files changed, 62 insertions(+), 72 deletions(-) delete mode 100644 res/drawable/button_ripple_radius.xml diff --git a/res/drawable/button_ripple_radius.xml b/res/drawable/button_ripple_radius.xml deleted file mode 100644 index 511520c2866..00000000000 --- a/res/drawable/button_ripple_radius.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/notification_history_app_layout.xml b/res/layout/notification_history_app_layout.xml index 52c0e421408..7d53b4d4142 100644 --- a/res/layout/notification_history_app_layout.xml +++ b/res/layout/notification_history_app_layout.xml @@ -21,63 +21,79 @@ android:layout_height="wrap_content" android:orientation="vertical"> - + android:paddingStart="16dp" + android:background="?android:attr/selectableItemBackground" + android:clipChildren="true"> + + android:scaleType="centerInside" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@id/text_start_guideline" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> - - - - + android:orientation="vertical" + app:layout_constraintStart_toEndOf="@id/icon" /> - + - + + + + + + + + + + android:background="?android:attr/listDivider" /> + app:layout_constraintTop_toTopOf="parent" />