Skip to content Skip to sidebar Skip to footer

Using Only One Fragment With Recyclerview For Multiple Tablayout , Not Updating Data Correctly On Tabs Change

There is a question similar to me, but that solution didn't work for my case. The question I have referred is this I have a fragment named 'HomeFragment' which consists of a VieW

Solution 1:

This seems to be ViewPager page cashing issue. pls call below code from onCreateView() of HomeFragment.

mViewPager.setOffscreenPageLimit(1);

Post a Comment for "Using Only One Fragment With Recyclerview For Multiple Tablayout , Not Updating Data Correctly On Tabs Change"