From fe0ce01da7a2bc0a0c8430abcf63075d24a1a8d8 Mon Sep 17 00:00:00 2001 From: Tony Mak Date: Tue, 31 May 2016 20:51:01 +0100 Subject: [PATCH] Fix RTL issue in Trusted Credentail page Two changes are required to fix the issue. 1. The width of the textview needed to be wrap_content in order to resolve the random issue. I guess it is a framework bug, but anyway the UI looks the same after the change 2. textAlignment="viewStart" is needed to make the textview RTL 3. Clean up: Change the RelativeLayout to a vertical LinearLayout Bug: 28757193 Change-Id: I1142d4dd31eb86b80f5a2316c1c7825df287b609 --- res/layout/trusted_credential.xml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/res/layout/trusted_credential.xml b/res/layout/trusted_credential.xml index ea13939bf57..cc146f8195c 100644 --- a/res/layout/trusted_credential.xml +++ b/res/layout/trusted_credential.xml @@ -15,37 +15,37 @@ --> + android:paddingBottom="15dip" + android:orientation="horizontal"> - + android:layout_weight="1" + android:orientation="vertical"> + android:textAppearance="?android:attr/textAppearanceMedium" + android:textAlignment="viewStart"/> - - + android:textColor="?android:attr/textColorSecondary" + android:textAlignment="viewStart"/> +