From 910d49f1aac9f43f8a2ed041c97ee1d9eb8ee901 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 14 Jul 2017 12:16:41 +0200 Subject: [PATCH] Fixed the text alignment with RTL text The alignment was inconsistent before and text was displaying on the lefthand side. Test: add notification, observe text in RTL mode Change-Id: I9e164687307727a07093a70f5b7710ea8b7c3deb Bug: 62845923 --- core/res/res/layout/notification_template_material_big_text.xml | 1 + core/res/res/layout/notification_template_part_line1.xml | 1 + core/res/res/layout/notification_template_text.xml | 1 + 3 files changed, 3 insertions(+) diff --git a/core/res/res/layout/notification_template_material_big_text.xml b/core/res/res/layout/notification_template_material_big_text.xml index 1aca99feb872..0cfe6898f111 100644 --- a/core/res/res/layout/notification_template_material_big_text.xml +++ b/core/res/res/layout/notification_template_material_big_text.xml @@ -55,6 +55,7 @@ android:singleLine="false" android:gravity="top" android:visibility="gone" + android:textAlignment="viewStart" /> diff --git a/core/res/res/layout/notification_template_part_line1.xml b/core/res/res/layout/notification_template_part_line1.xml index 308b30ff36a9..ca35de3922ed 100644 --- a/core/res/res/layout/notification_template_part_line1.xml +++ b/core/res/res/layout/notification_template_part_line1.xml @@ -28,6 +28,7 @@ android:singleLine="true" android:ellipsize="marquee" android:fadingEdge="horizontal" + android:textAlignment="viewStart" /> -- 2.11.0