TabLayoutOnPageChangeListener

A ViewPager.OnPageChangeListener class which contains the necessary calls back to the provided TabLayout so that the tab position is kept in sync.

This class stores the provided TabLayout weakly, meaning that you can use addOnPageChangeListener(OnPageChangeListener) without removing the listener and not cause a leak.

Constructors

Link copied to clipboard
constructor(tabLayout: TabLayout)

Functions

Link copied to clipboard
open fun onPageScrolled(position: Int, positionOffset: Float, positionOffsetPixels: Int)
Link copied to clipboard
open fun onPageScrollStateChanged(state: Int)
Link copied to clipboard
open fun onPageSelected(position: Int)