ViewStatePagerAdapter

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.

Inheritors

Functions

Link copied to clipboard
fun destroyItem(container: ViewGroup, position: Int, object: Any)
Link copied to clipboard
fun instantiateItem(container: ViewGroup, position: Int): Any
Link copied to clipboard
fun isViewFromObject(view: View, object: Any): Boolean
Link copied to clipboard
fun restoreState(state: Parcelable, loader: ClassLoader)
Link copied to clipboard
fun saveState(): ViewStatePagerAdapter.SavedState