From 5fc74c7f8fa2af2db4baab8b772d44af7cd7f6fd Mon Sep 17 00:00:00 2001 From: Stevie Kideckel Date: Fri, 14 May 2021 12:37:44 +0000 Subject: [PATCH] Add start to widget app name layout gravity This fixes the alignment issue in RTL. Seems like the default is start if layout_gravity isn't set, but if you set layout_gravity to center_vertical, you need to explicitly set start or it will go to the left. Bug: 188147009 Test: validated locally and in AS layout preview Change-Id: Ic4b4d7e6dfe03e1e6dd3ead5c3821e77261b4bb5 --- res/layout/widgets_list_row_header.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/layout/widgets_list_row_header.xml b/res/layout/widgets_list_row_header.xml index f20af87906..a0a04564b0 100644 --- a/res/layout/widgets_list_row_header.xml +++ b/res/layout/widgets_list_row_header.xml @@ -48,7 +48,7 @@ android:id="@+id/app_title" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" + android:layout_gravity="start|center_vertical" android:textColor="?android:attr/textColorPrimary" android:textSize="16sp" tools:text="App name" />