From fa528c440317e4acff412a9b52fbc1eade7e49cc Mon Sep 17 00:00:00 2001 From: isabellekim Date: Thu, 6 Dec 2018 11:53:26 -0500 Subject: [PATCH] Remove padding from large text for BottomNavigation to match small text. Guidance is to use short text in bottom navigation so this should not have a visual effect since the width of each item is equally divided with a max width (in other words, the padding doesn't affect the width). However, when system font size is increased, even short text can be cut off by the padding and this gives a little more room for the text. PiperOrigin-RevId: 224345637 --- .../res/layout/design_bottom_navigation_item.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/java/com/google/android/material/bottomnavigation/res/layout/design_bottom_navigation_item.xml b/lib/java/com/google/android/material/bottomnavigation/res/layout/design_bottom_navigation_item.xml index 904fdf8f6..0867b14a7 100644 --- a/lib/java/com/google/android/material/bottomnavigation/res/layout/design_bottom_navigation_item.xml +++ b/lib/java/com/google/android/material/bottomnavigation/res/layout/design_bottom_navigation_item.xml @@ -36,15 +36,15 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:duplicateParentState="true" + android:ellipsize="end" android:maxLines="1" android:textSize="@dimen/design_bottom_navigation_text_size"/>