我BottomnavigationView
在我的应用程序中使用。但每次我浏览它时,fragments get recreated
. 我发现万一ViewPager
我们可以setOffscreenPageLimit()
用于重用片段。
在 BottomNavigationView 的情况下如何实现相同的效果?
我BottomnavigationView
在我的应用程序中使用。但每次我浏览它时,fragments get recreated
. 我发现万一ViewPager
我们可以setOffscreenPageLimit()
用于重用片段。
在 BottomNavigationView 的情况下如何实现相同的效果?