I have a `TabLayoutMediator` connecting a `TabLayo...
# android
k
I have a
TabLayoutMediator
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?
stackoverflow 3
google 3