I\'m migrating my ViewPager to ViewPager2 since the latter is supposed to solve all the problems of the former. Unfortunately, when using it with a
ViewPager
ViewPager2
Similar to some other answers here, this is what I'm currently using. I'm not clear on how reliable it is but at least one of these is bound to work