displayContextualToolbar

abstract fun displayContextualToolbar(@NonNull toolbar: ContextualToolbar, animate: Boolean)

Sets the contextual toolbar to be displayed in the coordinator. Only one contextual toolbar can be set, so if there is a previously added contextual toolbar, it will be removed.

Parameters

toolbar

Toolbar to be set to the coordinator and displayed.

animate

true to animate toolbar removal, false otherwise.