Fix centering on classic Global Actions menu. Test: Automated tests pass. Set language to German (Belgien), and set screen size to the largest setting. Bug report string should scroll. Fixes: 130031168 Fixes: 130031706 Change-Id: I4f873728edded9bc9eddc44a66ac84256a657741
39 lines
1.5 KiB
XML
39 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.android.systemui.HardwareUiLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@id/global_actions_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="top|right"
|
|
android:layout_marginBottom="0dp"
|
|
android:orientation="vertical"
|
|
android:paddingTop="@dimen/global_actions_top_padding"
|
|
android:clipToPadding="false"
|
|
android:theme="@style/qs_theme"
|
|
android:clipChildren="false">
|
|
|
|
<!-- Global actions is right-aligned to be physically near power button -->
|
|
<LinearLayout
|
|
android:id="@android:id/list"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top|right"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/global_actions_padding"
|
|
android:translationZ="@dimen/global_actions_translate" />
|
|
|
|
<!-- For separated button-->
|
|
<FrameLayout
|
|
android:id="@+id/separated_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top|right"
|
|
android:layout_marginTop="6dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/global_actions_padding"
|
|
android:translationZ="@dimen/global_actions_translate" />
|
|
|
|
</com.android.systemui.HardwareUiLayout>
|