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

listFragment
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
Link copied to clipboard
Link copied to clipboard

Function to define the list of fragments to include inside the ViewPager

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var tabLayout: TabLayout?