Has Anyone used setIsRecyclable(false) in viewpage...
# android
a
Has Anyone used setIsRecyclable(false) in viewpager2 while using FragmentStateAdapter. I have done this and got an interesting behavior. Each page/fragment is only created once (when the page comes into view) and it retains the fragment. That means that the fragment is not destroyed irrespective of how far we move from the fragment. I could not find any docs which specifies the use of setIsRecyclable in ViewPager2. Is this intended behavior or just a side effect which can be affected when the view pager 2 is updated?
😶 4