You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`@Nullable view getHeaderView()` | Returns an instance of the header view associated with the Navigation Rail, null if none was currently attached.
190
227
228
+
### Expanding the Navigation Rail
229
+
230
+
You can call `navigationRailView.expand()` and `navigationRailView.collapse()` to expand and collapse the navigation rail.
231
+
232
+
When collapsed, only menu items not under a submenu will be shown, up to a limit of 7.
233
+
234
+
When expanded, all menu items will be shown, including submenu items.
235
+
236
+
Navigation rails are collapsed by default which animates into the expanded navigation rail when expanded. If the content beside
237
+
the navigation rail takes into account the size of the navigation rail (ie., through setting constraints in `ConstraintLayout` or layout weights) then the content will also be animated to shrink. This animation is taken care of by a [ChangeBounds Transition](https://developer.android.com/reference/android/transition/ChangeBounds); any animations during the expansion of the navigation rail should be 'turned off' as
238
+
it could result in a strange animation due to the `Transition`.
0 commit comments