Clearing OffscreenPage in Android ViewPager -
i have viewpager , multiple tabs. 1 of these tabs controls settings, affects every other tabs. updates fine when change settings, except pages kept in memory. in order these update have select tab far enough it, come back.
is there way force these tabs recreate themselves?
thank you
according this question on so, can reset adapter reload pages:
viewpage.setadapter( adapter );
the duplicate that question linked to gives helpful information, such calling .notifydatasetchanged()
on viewpager
adapter.
Comments
Post a Comment