From 1ee2a062e02a94684f4567230d363c372f139331 Mon Sep 17 00:00:00 2001 From: Taeho Kim Date: Tue, 22 May 2012 14:57:01 +0900 Subject: [PATCH] String on Toast notification does not aligned to center If length of the string being showed on Toast is short (less than 8 chars), it is aligned to left rather than to center. Added attribute android:layout_gravity="center_horizontal" on the TextView where Toast's message are shown to fix issue. Change-Id: I77669fd8a11d1ec8f6b082348eb818671ce158bb Signed-off-by: Taeho Kim --- core/res/res/layout/transient_notification.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/core/res/res/layout/transient_notification.xml b/core/res/res/layout/transient_notification.xml index 21d58aa66002e..5523807d65480 100644 --- a/core/res/res/layout/transient_notification.xml +++ b/core/res/res/layout/transient_notification.xml @@ -29,6 +29,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" + android:layout_gravity="center_horizontal" android:textAppearance="@style/TextAppearance.Small" android:textColor="@color/bright_foreground_dark" android:shadowColor="#BB000000"