collapse
@CanIgnoreReturnValue
See collapse.
@CanIgnoreReturnValue
Starts a collapse animation, if it's not already started, which transitions from the
expandedView
, e.g., a contextual Toolbar, to the SearchBar.
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 collapse animation was started