Looping Pager Adapter
abstract class LoopingPagerAdapter<T>(itemList: List<T>, isInfinite: Boolean) : PagerAdapter
Content copied to clipboard
A Pager Adapter that supports infinite loop. This is achieved by adding a fake item at both beginning and the last, And then silently changing to the same, real item, thus looks like infinite.
Constructors
LoopingPagerAdapter
Link copied to clipboard
Functions
destroyItem
Link copied to clipboard
open override fun destroyItem(container: ViewGroup, position: Int, object: Any)
Content copied to clipboard
finishUpdate
Link copied to clipboard
getItemPosition
Link copied to clipboard
getPageTitle
Link copied to clipboard
getPageWidth
Link copied to clipboard
instantiateItem
Link copied to clipboard
open override fun instantiateItem(container: ViewGroup, position: Int): Any
Content copied to clipboard
isViewFromObject
Link copied to clipboard
notifyDataSetChanged
Link copied to clipboard
open override fun notifyDataSetChanged()
Content copied to clipboard
registerDataSetObserver
Link copied to clipboard
restoreState
Link copied to clipboard
open fun restoreState(@Nullable() p0: Parcelable?, @Nullable() p1: ClassLoader?)
Content copied to clipboard
saveState
Link copied to clipboard
setPrimaryItem
Link copied to clipboard
setViewPagerObserver
Link copied to clipboard
startUpdate
Link copied to clipboard
unregisterDataSetObserver
Link copied to clipboard