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
This commit is contained in:
Robert Snoeberger
2020-06-26 14:02:49 -04:00
parent 72ed8f0f23
commit 3534cca4a9

View File

@@ -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"