ArcStateAdapter

class ArcStateAdapter(manager: FragmentManager, lifeCycle: Lifecycle, listFragment: List<ArcFragment<*>>) : FragmentStateAdapter

ArcStateAdapter an adapter for configuring androidx.viewpager2.widget.ViewPager2

Author

jimlyas

Since

13 Jan 2023

Parameters

manager
listFragment

List of ArcFragment to inflate into the androidx.viewpager2.widget.ViewPager2

Copyright © 2022-2023 jimlyas. All rights reserved.

Constructors

Link copied to clipboard
constructor(manager: FragmentManager, lifeCycle: Lifecycle, listFragment: List<ArcFragment<*>>)

Functions

Link copied to clipboard
open override fun createFragment(position: Int): ArcFragment<*>
Link copied to clipboard
open override fun getItemCount(): Int