rightnao
b184df6848
[NavigationBar] Add active indicator attributes to change active indicator height, width, and horizontal margins when it is in an expanded state (ie. when start icon gravity is set to 'start')
...
PiperOrigin-RevId: 657266378
2024-07-30 09:12:47 -07:00
rightnao
87ab6606fd
[NavigationRail] Add an attribute to control how we measure the bottom padding of the navigation item
...
PiperOrigin-RevId: 640992331
2024-06-11 18:57:33 +00:00
rightnao
abb6e91a0a
[NavigationBar] Add new itemIconGravity attribute
...
PiperOrigin-RevId: 638866190
2024-06-05 18:24:24 +00:00
rightnao
60a525a167
[BottomNavigationView][NavigationRailView] Modifying NavigationBarView to match more to specs and restructuring layout to prepare for expressive changes
...
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
2024-05-23 14:54:36 +00:00
Ga\u00ebtan Muller
28dc750cf7
[Badge] Remove BadgeUtils.USE_COMPAT_PARENT
...
Resolves https://github.com/material-components/material-components-android/pull/4170
GIT_ORIGIN_REV_ID=35f11c97b64f22b9c3994b41b35c955f7a4261ed
PiperOrigin-RevId: 634877849
2024-05-17 21:08:54 +00:00
pubiqq
510881a469
[Internal] Stop using deprecated androidx.core.view.* methods
...
Resolves https://github.com/material-components/material-components-android/pull/4117
GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
rightnao
cf143d0760
[NavigationBar] Modify test usage to use icon container so we don't have to special case the existence of the icon container
...
PiperOrigin-RevId: 627837170
2024-04-26 17:49:54 +00:00
rightnao
8b016a0e8b
[NavigationRail][Badge] Added bigger padding in between items on the navigation rail when font scale is large so there is more room for the badges when they are forced inside the view bounds
...
Also fixed bug with navigation rail items moving when there is a badge vs when there is no longer a badge, and adds 4dp padding between icon container/active indicator and label text as per specs https://m3.material.io/components/navigation-rail/overview
PiperOrigin-RevId: 540349399
2023-06-14 12:47:57 -07:00
pfthomas
022e217770
[Navigation] Add itemTextAppearanceActiveBoldEnabled attr
...
Resolves https://github.com/material-components/material-components-android/issues/3191
Resolves https://github.com/material-components/material-components-android/issues/3293
PiperOrigin-RevId: 539977391
2023-06-14 15:14:24 +00:00
hunterstich
0a0bff1489
Automated g4 rollback of changelist 515410464
...
PiperOrigin-RevId: 517409678
2023-03-20 21:21:59 +00:00
hunterstich
0c62df4a60
Automated g4 rollback of changelist 515343383
...
PiperOrigin-RevId: 515410464
2023-03-13 21:20:02 +00:00
hunterstich
1d2a59ba37
[NavigationRail][NavigationBar] Fixed active item focused state color not being visible.
...
The color state list used for the ripple to indicate focal/hover state was being set as the background of an item and being obscured by the active indicator. It is now the foreground and visible on top of the active indicator.
PiperOrigin-RevId: 515343383
2023-03-13 21:17:13 +00:00
pfthomas
11e98f2d11
[BottomNavigationView][NavigationRailView] Updated active text label to use a bold typeface.
...
PiperOrigin-RevId: 476415508
2022-09-26 22:11:51 +00:00
hunterstich
11578b34f3
[NavigationBar][NavigationRail] Updated item ripple to be contained within active indicator shape when enabled.
...
PiperOrigin-RevId: 453449225
2022-06-07 18:49:19 -07:00
hunterstich
1995438305
[NavigationBar][NavigationRail] Updated active indicator to use new motion system.
...
PiperOrigin-RevId: 447463375
2022-05-09 14:48:11 -04:00
pubiqq
3ca41be8f0
[General] Fix typos
...
Resolves https://github.com/material-components/material-components-android/pull/2654
GIT_ORIGIN_REV_ID=b8f6728979875629f2c813ef90d2f671cf56b4eb
PiperOrigin-RevId: 442852630
2022-04-19 14:48:55 -04:00
hunterstich
d66676fd6b
[NavigationBar][NavigationRail] Removed font scaling from NavigationBarView item labels.
...
PiperOrigin-RevId: 426264069
2022-02-03 20:20:31 -08:00
conradchen
b3db1cc028
[Badge] Prevent multiple badges being attached to a menu item at the same time
...
Fixes the logic in NavigationBarMenuView.restoreBadgeDrawables(), which may override the newly created badges with the restored drawables incorrectly. Also adds a safe guard that removes the previously attached badges if any, before attaching a new badge.
PiperOrigin-RevId: 424923078
2022-01-31 18:12:50 -08:00
Material Design Team
cfc00aa5a3
Update android core class definitions across material
...
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
Material Design Team
a487c89185
Internal change
...
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
hunterstich
fd23c6b0ad
[NavigationRail] Added support for unlabeled items to automatically resize their active indicator.
...
PiperOrigin-RevId: 399689605
2021-09-29 11:19:59 -04:00
dsn5ft
478ca74a00
[M3][NavigationBar] Update active indicator initialization to skip animator if view not attached to window yet
...
PiperOrigin-RevId: 398719690
2021-09-24 17:53:11 +00:00
hunterstich
619c95c2f8
[NavigationBar] Fixed menu visibility changes causing active indicator flashing.
...
PiperOrigin-RevId: 393365926
2021-08-27 15:04:47 -04:00
hunterstich
166d9f6471
[NavigationBar] Updated indicator and label to use motion theming.
...
PiperOrigin-RevId: 368684603
2021-04-16 17:54:00 -04:00
hunterstich
7eea2b25bc
[Navigation bar] Add active indicator.
...
PiperOrigin-RevId: 368261456
2021-04-16 12:42:14 -04:00
raajkumars
585e0ff0ff
[Navigation Rail] Fixed spacing issue between destination icon and label.
...
PiperOrigin-RevId: 357997380
2021-02-18 14:34:17 -08:00
connieshi
da2d8264d1
[Tabs][BottomNav] Do not show tooltip on long press for L and M devices to avoid freezing devices on repeated long press.
...
PiperOrigin-RevId: 355428951
2021-02-04 20:54:30 -05:00
raajkumars
aca5bfb6f7
[Bottom Navigation] Extracted common logic from bottom navigation component into navigation package.
...
PiperOrigin-RevId: 345029590
2020-12-02 09:55:26 -05:00