kyleg
02/07/2020, 3:37 AMTabLayoutMediator
connecting a TabLayout
and ViewPager2
. On a change in LiveData
, I redraw the pager using DiffUtil
. Basically it’ll be an event that adds an additional page+tab. So this triggers the TabLayoutMediator
callback to configure the tabs.
I want to autoscroll to the new tab/page as soon as it appears as a tab. Is there a “tab rendered” callback or something I can use?