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
You should set ID to the CoordinatorLayout. It will automatically save its state. Believe me.
See here.