mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
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
This commit is contained in:
parent
9837721733
commit
fa528c4403
@ -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"/>
|
||||
<TextView
|
||||
android:id="@+id/largeLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:duplicateParentState="true"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textSize="@dimen/design_bottom_navigation_active_text_size"
|
||||
android:visibility="invisible"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user