From ea260acdd6c54893ff685359e8deed2fa5790fa9 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Wed, 23 Feb 2022 20:13:21 +0000 Subject: [PATCH] User Switcher: Fix corner case for large names Ellipsize text when it exceeds maximum width. The max width is calculated programatically. We constraint text to width of the imageview. Bug: 221077524 Test: Manual on device Change-Id: Ie34bb434f7bde43233459da075b0417d0a896661 --- .../layout/user_switcher_fullscreen_item.xml | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/packages/SystemUI/res/layout/user_switcher_fullscreen_item.xml b/packages/SystemUI/res/layout/user_switcher_fullscreen_item.xml index a3d9a69e73c5f..60e840c0708bf 100644 --- a/packages/SystemUI/res/layout/user_switcher_fullscreen_item.xml +++ b/packages/SystemUI/res/layout/user_switcher_fullscreen_item.xml @@ -13,21 +13,30 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - - - + + + + +