From fbe6888358027fb5425a631bb6d86c1b220663c2 Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Fri, 27 Mar 2020 13:30:10 -0400 Subject: [PATCH] Controls UI - Various header fixes 1. Long structures no longer get too close to the menu 2. Menu needs content description 3. Menu should ripple Bug: 152486847 Test: visual Change-Id: If5d2198446755773e624463ca13a6569b8edf496 --- .../res/layout/controls_with_favorites.xml | 43 ++++++++++--------- packages/SystemUI/res/values/dimens.xml | 3 +- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/packages/SystemUI/res/layout/controls_with_favorites.xml b/packages/SystemUI/res/layout/controls_with_favorites.xml index 1d6c75138ed0f..91beeb88d87f7 100644 --- a/packages/SystemUI/res/layout/controls_with_favorites.xml +++ b/packages/SystemUI/res/layout/controls_with_favorites.xml @@ -14,26 +14,29 @@ ~ limitations under the License. --> + xmlns:android="http://schemas.android.com/apk/res/android"> - + android:layout_height="match_parent" + android:orientation="horizontal" + android:layout_marginTop="@dimen/controls_top_margin" + android:layout_marginEnd="@dimen/controls_header_side_margin" + android:layout_marginStart="@dimen/controls_header_side_margin"> + + + + android:layout_gravity="center" + android:gravity="center"> - - + android:layout_gravity="center" + android:contentDescription="@string/accessibility_menu" + android:background="?android:attr/selectableItemBackgroundBorderless" /> + 40dp - 32dp + 4dp + 48dp 40dp 16dp 44dp