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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -