ViewPager2Configuration
class ViewPager2Configuration(var activity: ArcActivity<*>? = null, var fragment: ArcFragment<*>? = null, var listFragment: List<ArcFragment<*>> = listOf(), var tabLayout: TabLayout? = null, var tabLayoutConfiguration: TabLayoutConfiguration? = null)
Author
jimlyas
Since
13 Jan 2023
Parameters
activity
ArcActivity where the androidx.viewpager2.widget.ViewPager2 is inflated
fragment
ArcFragment where the androidx.viewpager2.widget.ViewPager2 is inflated
listFragment
list of ArcFragment to include inside the androidx.viewpager2.widget.ViewPager2
tabLayout
TabLayout to linked with the androidx.viewpager2.widget.ViewPager2
tabLayoutConfiguration
configuration for the TabLayout
Copyright © 2022-2023 jimlyas. All rights reserved.
Constructors
Link copied to clipboard
constructor(activity: ArcActivity<*>? = null, fragment: ArcFragment<*>? = null, listFragment: List<ArcFragment<*>> = listOf(), tabLayout: TabLayout? = null, tabLayoutConfiguration: TabLayoutConfiguration? = null)
Functions
Link copied to clipboard
fun bindWithTabLayout(tabLayout: TabLayout, configuration: TabLayoutDeclaration? = null): ViewPager2Configuration
Function to bind TabLayout with the androidx.viewpager2.widget.ViewPager2
Link copied to clipboard
Function to define ArcActivity that inflated the androidx.viewpager2.widget.ViewPager2
Link copied to clipboard
Function to define ArcFragment that inflated the androidx.viewpager2.widget.ViewPager2
Link copied to clipboard
Function to define the list of fragments to include inside the ViewPager