expand

@CanIgnoreReturnValue
open fun expand(@NonNull expandedView: View): Boolean
@CanIgnoreReturnValue
open fun expand(@NonNull expandedView: View, @Nullable appBarLayout: AppBarLayout): Boolean

See expand.


@CanIgnoreReturnValue
open fun expand(@NonNull expandedView: View, @Nullable appBarLayout: AppBarLayout, skipAnimation: Boolean): Boolean

Starts an expand animation, if it's not already started, which transitions from the to the expandedView, e.g., a contextual Toolbar.

Note: If you are using an AppBarLayout in conjunction with the SearchBar, you may pass in a reference to your AppBarLayout so that its visibility and offset can be taken into account for the animation.

Return

whether or not the expand animation was started