From 30d9b190d5f789c3e354d546fb22ed21eac8d55e Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Fri, 22 Mar 2024 15:13:48 +0000 Subject: [PATCH] Simplify OverviewActionsView layout to avoid unexpected misalignemnt - Removed the weight=3 space on left/right and replace with gracvity=central_horizontal - Removed unused oav_three_button_space - Removed irrelevant layout_gravity (gravity within parent), as the LinearLayout is already taking full parent width, and its vertical alignemnt si controlled by `updateVerticalMargin` in code Bug: 329255757 Test: OverviewImageTest Flag: None (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2cf1a0c08d41ee7a29ea920c93850d3914ed7cd8) Merged-In: Ice087dde7d3c36b4536d36ce82c382c31c124855 Change-Id: Ice087dde7d3c36b4536d36ce82c382c31c124855 --- .../res/layout/overview_actions_container.xml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/quickstep/res/layout/overview_actions_container.xml b/quickstep/res/layout/overview_actions_container.xml index 5bd5823094..758622b64b 100644 --- a/quickstep/res/layout/overview_actions_container.xml +++ b/quickstep/res/layout/overview_actions_container.xml @@ -23,14 +23,9 @@ android:id="@+id/action_buttons" android:layout_width="match_parent" android:layout_height="@dimen/overview_actions_height" - android:layout_gravity="bottom|center_horizontal" + android:gravity="center_horizontal" android:orientation="horizontal"> - -