I have two fragments.
In first fragment I have a container static (LinearLayout) that to the view of fragment. In this container i do a inflation of several views.
I change to a second fragment, but when i return to the first fragment the views inflated disappeared.
How I can save the state of the container? Someone can give me a example?
Thanks for yout help and attention

onCreateView is being called again upon returning and your fragment is being recreated.
One solution is to save your fragment state in onSaveInstanceState and reload it in onCreateView:
EDIT:
I’ve found this to work if you would like to keep the actual view: