28 Commits

Author SHA1 Message Date
t895
4657afbefd [NavigationRailView] Use display cutout and system bar insets for start padding
Resolves https://github.com/material-components/material-components-android/pull/3991
Resolves https://github.com/material-components/material-components-android/issues/3990#issuecomment-2632054241

GIT_ORIGIN_REV_ID=f082787a3ad3ef750d77bd45e17fb31989e1f3bf
PiperOrigin-RevId: 723579609
2025-02-05 20:11:00 +00:00
rightnao
7f0a51dae2 [NavigationRail] Fix active indicator label jump when expanding
PiperOrigin-RevId: 713436233
2025-01-09 13:51:02 +00:00
manabu-nakamura
b4585cdf16 [NavigationRailView] Update comment
Resolves https://github.com/material-components/material-components-android/pull/4493
Resolves https://github.com/material-components/material-components-android/issues/4492

GIT_ORIGIN_REV_ID=63072926609dbb6ef66a18430db60e296202b576
PiperOrigin-RevId: 713025342
2025-01-08 18:22:36 +00:00
rightnao
94966194fa [NavigationRail] Add divider functionality for expanded nav rail
PiperOrigin-RevId: 708103452
2024-12-20 18:45:43 +00:00
rightnao
2a0dda873c [NavigationRail] Consume all touch events to avoid views under from receiving touch events.
PiperOrigin-RevId: 705270356
2024-12-16 13:02:13 +00:00
rightnao
0e9ab6616d [NavigationRail] Integrate tokens
PiperOrigin-RevId: 699328711
2024-12-02 19:41:20 +00:00
rightnao
d148048a00 [NavigationRail][a11y] Add a11y announcements for when nav rail is expanded or collapsed
PiperOrigin-RevId: 689858577
2024-10-25 18:54:49 +00:00
rightnao
08c23dc384 [NavigationRail] Navigation rail expansion
PiperOrigin-RevId: 689848271
2024-10-25 18:53:02 +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
c08ee839e9 [NavigationRail] Fixed issue where top padding was not respected if menu gravity was center or bottom in certain scenarios
PiperOrigin-RevId: 675656279
2024-09-19 19:44:07 +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
b36919f203 [NavigationRail] Add expanded state
PiperOrigin-RevId: 660106312
2024-08-07 13:54:33 +00:00
rightnao
99e8044f85 [NavigationRail] Add item spacing attribute
PiperOrigin-RevId: 639835301
2024-06-05 18:29:56 +00:00
rightnao
801ccab0c0 [NavigationRail] Add new attributes for NavigationRail to control the top margin of the nav rail content, and the margin in between the optional header and the menu items
PiperOrigin-RevId: 637957360
2024-06-05 18:22:06 +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
e3b255b3a0 [Docs] Crosslink github docs in javadocs
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +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
hunterstich
3f993923b2 [NavigationRailView] Added attribute to control the application of start window inset padding.
PiperOrigin-RevId: 516904093
2023-03-15 21:10:53 +00:00
hunterstich
5173944531 [NavigationRailView] Fix bottom padding being applied to top bug
PiperOrigin-RevId: 435636054
2022-03-18 18:51:17 +00:00
hunterstich
c66633b385 [NavigationRail] Added support for opting in/out of the NavigationRail automatically adding system top and bottom window insets.
PiperOrigin-RevId: 424424554
2022-01-27 09:51:41 -08:00
Material Design Team
a487c89185 Internal change
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
hunterstich
674463fb6d [NavigationRail] Updated rail to support a minimum menu item height.
PiperOrigin-RevId: 397085204
2021-09-20 09:37:13 -07:00
Ian Lake
501ef8ea2a [NavigationRailView] Update inset handling for Navigation Rail & Bottom Nav
Resolves https://github.com/material-components/material-components-android/pull/2253

GIT_ORIGIN_REV_ID=b6c2270b8855e38231c29cbfd48949afd785258c
PiperOrigin-RevId: 383632982
2021-07-08 16:01:01 +00:00
nickrout
95a769c373 [Documentation] Improving navigation rail documentation.
PiperOrigin-RevId: 369436073
2021-04-20 15:18:22 -04:00
Material Design Team
a200a5ef17 [NavigationRail] Moves OnNavigationItem listeners to the NavigationBarView class
to be easier used by developers and other libraries

An example of where the current implementation fails is in Jetpack Navigation component where we rely on setOnNavigationItemSelectedListener and the similar methods in NavigationBarView (setOnItemSelectedListener) are protected.

PiperOrigin-RevId: 367467206
2021-04-08 20:43:35 -04:00
dniz
fed90a9e57 [Nav Rail / Bottom Nav / Nav Bar] API Fixes
Resolves https://github.com/material-components/material-components-android/issues/2131

PiperOrigin-RevId: 365873683
2021-03-31 10:27:45 -04:00
raajkumars
e13610e589 [Navigation Rail] Added Navigation Rail component to the library.
PiperOrigin-RevId: 355235369
2021-02-04 20:49:41 -05:00