closeDrawer

open fun closeDrawer(@NonNull drawerView: View)(source)

Close the specified drawer view by animating it into view.

Parameters

drawerView

Drawer view to close


open fun closeDrawer(@NonNull drawerView: View, animate: Boolean)(source)

Close the specified drawer view.

Parameters

drawerView

Drawer view to close

animate

Whether closing of the drawer should be animated.


open fun closeDrawer(gravity: Int)(source)

Close the specified drawer by animating it out of view.

Parameters

gravity

Gravity.LEFT to move the left drawer or Gravity.RIGHT for the right. GravityCompat.START or GravityCompat.END may also be used.


open fun closeDrawer(gravity: Int, animate: Boolean)(source)

Close the specified drawer.

Parameters

gravity

Gravity.LEFT to move the left drawer or Gravity.RIGHT for the right. GravityCompat.START or GravityCompat.END may also be used.

animate

Whether closing of the drawer should be animated.