I have read from @antonyt's answer to this StackOverflow question that FragmentPagerAdapter
will try to reuse an existing fragment found by FragmentManager.findFragmentByTag()
upon orientation change.
I have tried this. getItem(int)
of the FragmentPagerAdapter
is called when the Fragment
is first needed. Upon orientation change, getItem
is not called, which is in accordance with @antonyt's answer. But why is it that onCreate()
of the Fragment
is called again? I thought it was not destroyed?