From 3534cca4a9fcf095c6532b5e0a049b22d0d16746 Mon Sep 17 00:00:00 2001 From: Robert Snoeberger Date: Fri, 26 Jun 2020 14:02:49 -0400 Subject: [PATCH] Vertically center elements within output switcher chip Bug: 159990829 Test: manual - Change text size to smallest and look at output switcher ship. Verify that text is aligned to center of device icon. Test: manual - Change text size to largest and look at output switcher chip. Verify that icon is aligned to center of device name text. Change-Id: Ie1303c003afce190013aa78295e9d2b8425301f9 --- packages/SystemUI/res/layout/media_view.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/res/layout/media_view.xml b/packages/SystemUI/res/layout/media_view.xml index 07bbb8f40eb8c..edc20a7613829 100644 --- a/packages/SystemUI/res/layout/media_view.xml +++ b/packages/SystemUI/res/layout/media_view.xml @@ -132,6 +132,7 @@ android:layout_width="@dimen/qs_seamless_icon_size" android:layout_height="@dimen/qs_seamless_icon_size" android:layout_marginEnd="8dp" + android:layout_gravity="center_vertical" android:tint="@color/media_primary_text" android:src="@*android:drawable/ic_media_seamless" /> @@ -139,6 +140,7 @@ android:id="@+id/media_seamless_text" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_gravity="center_vertical" android:fontFamily="@*android:string/config_headlineFontFamily" android:singleLine="true" android:text="@*android:string/ext_media_seamless_action"