From 7c9b6bd2cf6c0693382d807ce823fa4c9c2014f3 Mon Sep 17 00:00:00 2001 From: shaoweishen Date: Mon, 15 Nov 2021 10:20:10 +0000 Subject: [PATCH] [Output Switcher] Adjusts color, size and margin Bug: 203072942 Test: verify on device Change-Id: I0c652f38b6e0726725da03770cf6a3ba1b18a775 --- .../media_output_dialog_button_background.xml | 30 ++++++++++--------- ..._output_dialog_solid_button_background.xml | 30 ++++++++++--------- .../drawable/media_output_item_background.xml | 3 +- .../media_output_item_background_active.xml | 5 ++-- .../drawable/media_output_status_check.xml | 3 +- .../drawable/media_output_status_failed.xml | 3 +- .../res/layout/media_output_dialog.xml | 10 ++++--- .../res/layout/media_output_list_item.xml | 10 +++---- packages/SystemUI/res/values-night/colors.xml | 11 +++++++ packages/SystemUI/res/values/colors.xml | 14 +++++++-- packages/SystemUI/res/values/styles.xml | 15 +++++++++- .../media/dialog/MediaOutputAdapter.java | 10 +++++++ .../media/dialog/MediaOutputBaseAdapter.java | 21 ++++--------- .../media/dialog/MediaOutputBaseDialog.java | 2 +- .../media/dialog/MediaOutputController.java | 19 ++++++++++++ 15 files changed, 121 insertions(+), 65 deletions(-) diff --git a/packages/SystemUI/res/drawable/media_output_dialog_button_background.xml b/packages/SystemUI/res/drawable/media_output_dialog_button_background.xml index 363a022efdac2..d9ae777ef8a1e 100644 --- a/packages/SystemUI/res/drawable/media_output_dialog_button_background.xml +++ b/packages/SystemUI/res/drawable/media_output_dialog_button_background.xml @@ -13,17 +13,19 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - - - - - + + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/media_output_dialog_solid_button_background.xml b/packages/SystemUI/res/drawable/media_output_dialog_solid_button_background.xml index 86f8b42b971ca..d49454fa1504f 100644 --- a/packages/SystemUI/res/drawable/media_output_dialog_solid_button_background.xml +++ b/packages/SystemUI/res/drawable/media_output_dialog_solid_button_background.xml @@ -13,17 +13,19 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - - - - - \ No newline at end of file + + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/media_output_item_background.xml b/packages/SystemUI/res/drawable/media_output_item_background.xml index 8c23659eb4613..ea77f1be1053e 100644 --- a/packages/SystemUI/res/drawable/media_output_item_background.xml +++ b/packages/SystemUI/res/drawable/media_output_item_background.xml @@ -15,9 +15,8 @@ --> - + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/media_output_item_background_active.xml b/packages/SystemUI/res/drawable/media_output_item_background_active.xml index 09dee95ce7bd1..839db4aae4702 100644 --- a/packages/SystemUI/res/drawable/media_output_item_background_active.xml +++ b/packages/SystemUI/res/drawable/media_output_item_background_active.xml @@ -15,9 +15,8 @@ --> - + android:radius="28dp"/> + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/media_output_status_check.xml b/packages/SystemUI/res/drawable/media_output_status_check.xml index 4e17e48b07ff3..1b750f8959b97 100644 --- a/packages/SystemUI/res/drawable/media_output_status_check.xml +++ b/packages/SystemUI/res/drawable/media_output_status_check.xml @@ -15,13 +15,12 @@ --> diff --git a/packages/SystemUI/res/drawable/media_output_status_failed.xml b/packages/SystemUI/res/drawable/media_output_status_failed.xml index 81fb92c8161a0..05c6358334410 100644 --- a/packages/SystemUI/res/drawable/media_output_status_failed.xml +++ b/packages/SystemUI/res/drawable/media_output_status_failed.xml @@ -15,13 +15,12 @@ --> diff --git a/packages/SystemUI/res/layout/media_output_dialog.xml b/packages/SystemUI/res/layout/media_output_dialog.xml index 4e2b4a64b1bca..843770220996c 100644 --- a/packages/SystemUI/res/layout/media_output_dialog.xml +++ b/packages/SystemUI/res/layout/media_output_dialog.xml @@ -41,6 +41,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="12dp" + android:background="@color/media_dialog_background" android:orientation="vertical"> @@ -75,7 +76,7 @@ android:id="@+id/device_list" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_weight="1" + android:background="@color/media_dialog_background" android:orientation="vertical">