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
3fbb198a1c
[BottomNavigationView] Update max item count to 6
...
PiperOrigin-RevId: 650353790
2024-07-08 20:34:03 +00: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
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
9f2e6864d2
[NavigationBar] Set badges to be null instead of removing them from the sparse array so that removing badges before restoring badge states will not override the current state
...
PiperOrigin-RevId: 546027617
2023-07-07 17:49:34 +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
rightnao
dfb9e81eeb
[Motion] Motion tweaks
...
PiperOrigin-RevId: 493105642
2022-12-06 15:22:34 -05: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
raajkumars
18554d9cb5
[BottomNavigationView] Fix for IllegalArgumentException in preview mode.
...
Resolves https://github.com/material-components/material-components-android/issues/2489
PiperOrigin-RevId: 428861308
2022-02-15 21:29:32 +00: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
285fa9de30
Automated g4 rollback of changelist 422930284
...
PiperOrigin-RevId: 422949121
2022-01-20 10:24:30 -05:00
Material Design Team
c52b95d4d5
Automated g4 rollback of changelist 420096508
...
PiperOrigin-RevId: 422930284
2022-01-19 19:34:23 -05:00
conradchen
bbbeacd64e
[Badge] Refactor Badge state managing logic
...
This CL fixes a couple of badge state related issues. First, it prevents the badges created before restoring instance states from being overwritten by the old instance states. Second, it makes badges reload their default style settings everytime when its being recreated so if the environment has been changed, the default values will reflect the environment change.
This CL also fixes that several attributes were not correctly saved/restored or their default values were not correctly loaded.
Resolves https://github.com/material-components/material-components-android/issues/2032
PiperOrigin-RevId: 420096508
2022-01-06 15:51:50 -05: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
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
aca5bfb6f7
[Bottom Navigation] Extracted common logic from bottom navigation component into navigation package.
...
PiperOrigin-RevId: 345029590
2020-12-02 09:55:26 -05:00