summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-06-25 00:28:25 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-06-25 00:28:25 +0000
commit501c451d7a339dc6d3a6ac0fc82be4e077141af9 (patch)
tree459b68188c1a0ed819a7326cde7d8903a97927a3
parent73113a69970941d644291b75b173ff8d18eb2086 (diff)
parenta907c4ef958444d7a03b27f80f4c43a862a74a1d (diff)
Merge "Fix convo name / icon overlap on low DPI" into rvc-dev
-rw-r--r--core/res/res/layout/notification_template_material_conversation.xml7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/res/res/layout/notification_template_material_conversation.xml b/core/res/res/layout/notification_template_material_conversation.xml
index 82e99e6419b6..861a056f3569 100644
--- a/core/res/res/layout/notification_template_material_conversation.xml
+++ b/core/res/res/layout/notification_template_material_conversation.xml
@@ -128,6 +128,9 @@
android:layout_weight="1">
<!-- Header -->
+
+ <!-- Use layout_marginStart instead of paddingStart to work around strange
+ measurement behavior on lower display densities. -->
<LinearLayout
android:id="@+id/conversation_header"
android:layout_width="wrap_content"
@@ -135,11 +138,11 @@
android:orientation="horizontal"
android:paddingTop="16dp"
android:layout_marginBottom="2dp"
- android:paddingStart="@dimen/conversation_content_start"
+ android:layout_marginStart="@dimen/conversation_content_start"
>
<TextView
android:id="@+id/conversation_text"
- android:layout_width="0dp"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/notification_conversation_header_separating_margin"
android:textAppearance="@style/TextAppearance.DeviceDefault.Notification.Title"