set Expanded
Sets whether this AppBarLayout is expanded or not, animating if it has already been laid out.
As with AppBarLayout's scrolling, this method relies on this layout being a direct child of a CoordinatorLayout.
Parameters
expanded
true if the layout should be fully expanded, false if it should be fully collapsed
Sets whether this AppBarLayout is expanded or not.
As with AppBarLayout's scrolling, this method relies on this layout being a direct child of a CoordinatorLayout.
Parameters
expanded
true if the layout should be fully expanded, false if it should be fully collapsed
animate
Whether to animate to the new state