I am creating an application with 4 main views. I want them all to stay on the LIST menu at the top (this is normal now).
Using fragments, I have the opportunity to change the view without actually switching to another activity, but since one of my views has a ViewPager, it does NOT work at all (when I first load the view, the content is fine, but at the second time, the ViewPager views will disappear and appear only if I go 2 index positions and go back) (see image shown for first boot time and seccond)

Please note that ViewPager does NOT display menu items, it is actually part of a fragment of the current menu item (in this case, "Simula'c ~ ao")
My question is: is this a known issue, is there an easy way to fix it, or should I do it differently? I already searched for this problem on the Internet, but nothing worked for me (invalidation, setting to getItemPosition to return POSITION_NONE ...)
I looked at the ViewPager class, and everything seems to be OK, I changed it, so every time I render the view, it forces me to display everything, but none of these methods worked.
I tried to set visibility to GONE and VISIBLE
I tried to disconnect and attach the adapter
Tried to cache views and return cached files.
One thing you can use to work: Change the orientation of your phone. It worked.
I tried a lot of things that I even remember ... I'm a little furious about this, because the last 24 hours have not helped me solve this "mystery" at all. I hope some of you can =]
My code: https://www.dropbox.com/s/u4mlxr3k6ta9yrm/MainActivity.java https://www.dropbox.com/s/2dqfnzjs2wl89hj/SimulationFragment.java
Views: https://www.dropbox.com/s/d6ruc1zjovqu6ob/activity_main.xml https://www.dropbox.com/s/lp1iea13klr77iq/activity_simulation.xml https://www.dropbox.com/s/1mkl3jqmo7g4wh8/ item_simulation.xml