I\'ve been searching for the solution of my problem for some time and didn\'t find solution.
I want to restore my fragment\'s layout after screen orientation change. I
Try using the following AppBarLayout method:
public void setExpanded (boolean expanded)
However, there's an Android issue addressing the behavior you reported
You should set ID to the CoordinatorLayout. It will automatically save its state. Believe me.
See here.