0

I'm implementing BottomNavigationView integrated with Navigation Component, everything works perfectly, but I'm wondering how to make Fragments not being recreated while swiping between BottomNavigationView icons.

It was possible with the usage of ViewPager by calling viewPager.setOffscreenPageLimit(n) where n is the number of fragments.

Is there any alternatives for viewPager.setOffscreenPageLimit(n) while using BottomNavigationView with Navigation Component

iosamammohamed
  • 317
  • 3
  • 18

0 Answers0