Fixing the title of Talback was not aligned to the right under Arabic in a11y short menu.

Solution:
Fine-tine layout layers to prevent the title of Accessibility service from LTR or RTL issue.

Bug: 158818391
Test: manual test
Change-Id: I4f281e94f507cd6021402c1fe53b584ce7bdfcde
This commit is contained in:
Peter_Liang
2021-09-06 20:02:54 +08:00
parent 88869b1812
commit b7219cb1d6

View File

@@ -39,15 +39,20 @@
android:layout_height="48dp"
android:scaleType="fitCenter"/>
<TextView
android:id="@+id/accessibility_shortcut_target_label"
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_weight="1"
android:textSize="20sp"
android:textColor="?attr/textColorPrimary"
android:fontFamily="sans-serif-medium"/>
android:layout_weight="1">
<TextView
android:id="@+id/accessibility_shortcut_target_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:textColor="?attr/textColorPrimary"
android:fontFamily="sans-serif-medium"/>
</LinearLayout>
<TextView
android:id="@+id/accessibility_shortcut_target_status"