I am working with CustomView which extends some Android view like FrameLayout. In my layout I use a ViewPager with a custom PagerAdapter.
The problem is that my View did not restore it's state when the fragment is re-attached to the ViewPager/Activity. For example, I have three fragments, if I swipe to the last one and come back to the first, the ScrollView is not where I let it : it's back to default, on top.
I know that with a PagerAdapter, not all fragment are active on the same time, basically juste the +1/-1.
I can't find why my View.onSaveInstanceState() is not called, so as onRestoreInstanceState.