mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-20 20:12:52 +08:00
Changes: - minHeight for BottomNavigationView is actually a minimum height, not an exact height; the bar height now wraps content properly - For BottomNavigationView, bottom item padding now counts from the bottom of the label group instead of from the lowest label baseline. The label TextViews also have a min height of the line height supplied by the provided TextAppearance. This aligns with our m3 specs - Structural changes in navigation item layouts. Previously the label and the icon were not aware of each other in a FrameLayout and could potentially overlap; this is no longer the case as they are in a LinearLayout - padding between icon and label is 4dp as per specs - Centering logic changed to center the icon and label as a group, not separately PiperOrigin-RevId: 635922505