Skip to content

Commit 1ee2a06

Browse files
committed
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 <jyte82@gmail.com>
1 parent 64f77c5 commit 1ee2a06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/res/res/layout/transient_notification.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
android:layout_width="wrap_content"
3030
android:layout_height="wrap_content"
3131
android:layout_weight="1"
32+
android:layout_gravity="center_horizontal"
3233
android:textAppearance="@style/TextAppearance.Small"
3334
android:textColor="@color/bright_foreground_dark"
3435
android:shadowColor="#BB000000"

0 commit comments

Comments
 (0)