Center GlobalActionsDialog when it does not take up the full screen.
Fixes: 132770089 Test: Manual -- power menu appears centered along edge in all orientations. Change-Id: If42345e255f4f463a8137ff56ac2b5d6a9601da4
This commit is contained in:
@@ -6,16 +6,15 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:theme="@style/qs_theme"
|
||||
android:gravity="right"
|
||||
android:gravity="right | center_vertical"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:paddingRight="@dimen/global_actions_grid_container_shadow_offset"
|
||||
android:layout_marginRight="@dimen/global_actions_grid_container_negative_shadow_offset"
|
||||
>
|
||||
<LinearLayout
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:gravity="top|right"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginRight="@dimen/global_actions_grid_container_bottom_margin"
|
||||
android:clipChildren="false"
|
||||
|
||||
@@ -6,16 +6,15 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:theme="@style/qs_theme"
|
||||
android:gravity="left"
|
||||
android:gravity="left | center_vertical"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:paddingLeft="@dimen/global_actions_grid_container_shadow_offset"
|
||||
android:layout_marginLeft="@dimen/global_actions_grid_container_negative_shadow_offset"
|
||||
>
|
||||
<LinearLayout
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:gravity="bottom|left"
|
||||
android:padding="0dp"
|
||||
android:orientation="vertical"
|
||||
android:clipChildren="false"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:theme="@style/qs_theme"
|
||||
android:gravity="bottom"
|
||||
android:gravity="bottom | center_horizontal"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:paddingBottom="@dimen/global_actions_grid_container_shadow_offset"
|
||||
@@ -14,8 +14,7 @@
|
||||
>
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:gravity="bottom | right"
|
||||
android:layout_width="wrap_content"
|
||||
android:layoutDirection="ltr"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
|
||||
Reference in New Issue
Block a user