From 9bdeef43fdd77053e639af1249fba5e1beba8da5 Mon Sep 17 00:00:00 2001 From: Tim Peng Date: Wed, 27 May 2020 13:29:55 +0800 Subject: [PATCH] Refine layout for output switcher panel 1. only make the output switcher tall enough to show 6.5 devices 2. enlarge album art to 52*52 and keep same size on group panel 3. reduce panel header top padding 4. enlarge slice first item top padding 5. update slider bar right padding 6. update panel height 7. align slice title item left with panel title icon 8. enlarge slice end item right padding Bug: 156045699 Test: manual test Change-Id: I51321d98ef483665689b7e258d6071df76382759 --- res/layout/panel_layout.xml | 16 ++++------- res/values/dimens.xml | 4 ++- res/values/styles.xml | 9 +++--- .../android/settings/panel/PanelFragment.java | 28 +++++++++++++++++++ 4 files changed, 42 insertions(+), 15 deletions(-) diff --git a/res/layout/panel_layout.xml b/res/layout/panel_layout.xml index 5dd53c00023..326fee8bf43 100644 --- a/res/layout/panel_layout.xml +++ b/res/layout/panel_layout.xml @@ -30,21 +30,20 @@ + android:layout_width="@dimen/output_switcher_panel_icon_size" + android:layout_height="@dimen/output_switcher_panel_icon_size"/> + android:orientation="vertical"> 16dp - 12dp + 11dp + 506dp + 52dp 24dp diff --git a/res/values/styles.xml b/res/values/styles.xml index bf89a2300c1..12b06b09510 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -564,16 +564,17 @@