-
Notifications
You must be signed in to change notification settings - Fork 14
MaterialBottomDrawerLayout
-
Get a nullable
MaterialBottomAppBarif available in the layout's children -
Get a nullable
FloatingActionButtonif available in the layout's children -
Get a nullable
AppBarLayoutif available in the layout's children -
A
MutableMapcomposed by the Panel ID (Int) and theMaterialPanelThis value is public since needed from navigation extension, but should NOT be modified directly.
-
The
MaterialDrawer
-
Hide the
topAppBar, if any.See
BottomAppBar.Behavior.slideDownfor duration and interpolator.-
doOnAnimationEndA lambda to execute the the animation end.
Default is empty lambda
-
-
Hide
bottomAppBarandtopAppBar, if available.See
MaterialBottomAppBar.hideSee
MaterialBottomDrawerLayout.hideToolbar-
withFabA
Booleanrepresenting whether theFloatingActionButtonneeds to be hiddenDefault is false
See
MaterialBottomAppBar.fab -
doOnAnimationEndA lambda that will be executed when the animation ends
Default is an empty lambda
See
ViewPropertyAnimator.withEndAction
-
-
Show the
topAppBar, if any.See
BottomAppBar.Behavior.slideUpfor duration and interpolator.-
doOnAnimationEndA lambda to execute the the animation end.Default is empty lambda
-
-
Show
bottomAppBarandtopAppBar, if available.See
MaterialBottomAppBar.showSee
MaterialBottomDrawerLayout.showToolbar-
doOnAnimationEndA lambda that will be executed when the animation ends
Default is an empty lambda
See
ViewPropertyAnimator.withEndAction
-
-
Hide and the show the
topAppBar, if any.See
MaterialBottomDrawerLayout.hideToolbarSeeMaterialBottomDrawerLayout.showToolbar-
delayThe delay in millisec from the end of
hideToolbarand the start ofshowToolbar -
doAfterHideA lambda to execute thehideToolbarthe animation endsDefault is an empty lambda
See
ViewPropertyAnimator.withEndAction -
doAfterShowA lambda to execute theshowToolbarthe animation endsDefault is an empty lambda
See
ViewPropertyAnimator.withEndAction
-
-
Hide and Show
topAppBarandbottomAppBar( and the relativeFloatingActionButton, ifwithFabis true ), if available.See
MaterialBottomAppBar.hideAndShowSee
MaterialBottomDrawerLayout.hideAndShowToolbar-
withFabA
Booleanrepresenting whether theFloatingActionButtonneeds to be hiddenDefault is false
See
MaterialBottomAppBar.fab -
delayA
Longdelay is milliseconds before start to show thetopAppBarandbottomAppBar, after they have been hiddenDefault is 150 ms
-
doAfterHideA lambda that will be executed when the hide animation ends
Default is an empty lambda
See
ViewPropertyAnimator.withEndAction -
doAfterShowA lambda that will be executed when the show animation ends
Default is an empty lambda
See
ViewPropertyAnimator.withEndAction
-
-
Set a new
MaterialPaneltoMaterialBottomDrawerLayout.panels, other panels with the sameidwill be removed.MaterialPanelis typealias ofAbsMaterialPanelFor set a
MaterialDraweruseMaterialBottomDrawerLayout.drawer]-
materialPanelThe
MaterialPanelto add` -
idthe ID to assign to the
materialPanel
-
-
Remove a
MaterialPanelfromMaterialBottomDrawerLayout.panelsand its relativeAbsMaterialPanel.panelViewfrom the layout.-
idthe ID of the
MaterialPanelto remove
-
-
Open a
PanelViewwith IDMaterialBottomDrawerLayout.drawerPanelIdSee
openPanel -
Open a
PanelViewwith the givenidSee
MaterialBottomDrawerLayout.grabPanelSee
MaterialBottomDrawerLayout.flyBar-
idthe ID of the
MaterialPanelto open
-
-
See
MaterialBottomDrawerLayout.closePanel -
Close the current open or grabbed
PanelView
-
Execute a
callbackwhen aMaterialPanelchanges itsFlystate. It setsMaterialBottomDrawerLayout.panelStateChangeListenercallback: PanelStateChangeListener
-
Execute a
callbackwhen aMaterialPanelchanges itsFlystate fromFly.BOTTOM. It setsMaterialBottomDrawerLayout.panelOpenStateChangeListenercallback: PanelChangeListener
-
Execute a
callbackwhen aMaterialPanelchanges itsFlystate toFly.BOTTOM. It setsMaterialBottomDrawerLayout.panelCloseStateChangeListenercallback: PanelChangeListener