rightnao
a798a82e0b
[NavigationRail] Add attributes for expanded active indicator padding
...
PiperOrigin-RevId: 715573480
2025-01-15 20:07:23 +00:00
rightnao
7f0a51dae2
[NavigationRail] Fix active indicator label jump when expanding
...
PiperOrigin-RevId: 713436233
2025-01-09 13:51:02 +00:00
rightnao
94966194fa
[NavigationRail] Add divider functionality for expanded nav rail
...
PiperOrigin-RevId: 708103452
2024-12-20 18:45:43 +00:00
rightnao
1696ec3dcd
[NavigationBar] Fix bug where setChecked(false) is called for the previously checked item even if it's already unchecked
...
PiperOrigin-RevId: 702083973
2024-12-04 23:57:41 +00:00
rightnao
5a8c39a1bf
[NavigationRail][BottomNavigation] Add attributes for scaling label text to font size and for the max lines for the label
...
PiperOrigin-RevId: 700052136
2024-12-02 19:43:03 +00:00
rightnao
3b11e7457c
[NavigationRail] Design review adjustments
...
PiperOrigin-RevId: 698483697
2024-11-21 17:32:03 +00:00
rightnao
ebcfcd18a9
[NavigationRail][BottomNavigation] Add horizontal spacing attribute for space in between the icon and the text when the item is in the start icon gravity configuration
...
PiperOrigin-RevId: 688222363
2024-10-22 20:12:15 +00:00
rightnao
cc09ce8d55
[NavigationRail] Add scrollingEnabled attribute and update NavigationRail to have unlimited items when expanded while keeping the limit of 7 items while collapsed, and add demo to catalog
...
PiperOrigin-RevId: 676208760
2024-09-20 19:42:33 +00:00
rightnao
928522087b
[NavigationRail] Add submenu support
...
PiperOrigin-RevId: 670703103
2024-09-04 16:43:23 +00:00
rightnao
f19ab5e9ce
[NavSuite] Token integration
...
PiperOrigin-RevId: 668568578
2024-08-28 22:37:21 +00:00
rightnao
544180ae29
[NavigationBar] Re-implement exclusive checkability to encompass whole menu, instead of just the current menu
...
PiperOrigin-RevId: 664877824
2024-08-19 17:53:07 +00:00
rightnao
5378d52fad
[NavigationBarView] Update item pool to be the size of the menu
...
PiperOrigin-RevId: 662183567
2024-08-13 17:39:20 +00:00
rightnao
b34fff342b
[NavigationBar] Add item gravity attribute and setter/getter
...
PiperOrigin-RevId: 660062964
2024-08-07 13:52:06 +00:00
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