Package com.pspdfkit.ui
Class ViewStatePagerAdapter
-
- All Implemented Interfaces:
public abstract class ViewStatePagerAdapter extends PagerAdapter
A simple implementation of PagerAdapter that automatically saves and restores view states when returning to pages previously removed and after view pager's state restoration. Similar to FragmentStatePagerAdapter but for use with just view, rather than fragments.
-
-
Method Summary
Modifier and Type Method Description final Object
instantiateItem(ViewGroup container, int position)
final void
destroyItem(ViewGroup container, int position, Object object)
final boolean
isViewFromObject(View view, Object object)
final ViewStatePagerAdapter.SavedState
saveState()
final void
restoreState(Parcelable state, ClassLoader loader)
-
-
Method Detail
-
instantiateItem
final Object instantiateItem(ViewGroup container, int position)
-
destroyItem
final void destroyItem(ViewGroup container, int position, Object object)
-
isViewFromObject
final boolean isViewFromObject(View view, Object object)
-
saveState
final ViewStatePagerAdapter.SavedState saveState()
-
restoreState
final void restoreState(Parcelable state, ClassLoader loader)
-
-
-
-