From b549c0f6153417e39d7817de91f73e21ad0a79d9 Mon Sep 17 00:00:00 2001 From: Tim Peng Date: Fri, 8 May 2020 13:49:08 +0800 Subject: [PATCH] Single line for output switcher panel title Bug: 155956511 Test: manual Change-Id: I2c33783d55c0ab5358b7fd1f4a0f405b3e25ff2b --- res/layout/panel_layout.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/layout/panel_layout.xml b/res/layout/panel_layout.xml index 805d431b82a..5dd53c00023 100644 --- a/res/layout/panel_layout.xml +++ b/res/layout/panel_layout.xml @@ -51,6 +51,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" android:gravity="center_vertical" android:orientation="vertical" android:paddingBottom="9dp" @@ -59,6 +60,8 @@ android:id="@+id/header_title" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:ellipsize="end" + android:maxLines="1" android:textColor="?android:attr/textColorPrimary" android:textSize="20sp"/>