Skip to content Skip to sidebar Skip to footer

I Am Trying To Add Dynamic Title In Tablayout But On Basis Of That Title I Want To Display Different Products

enter image description here for (int i = 0; i < mFragmentTitleList.size(); i++) { mFragmentList.add(new MenuListFragment()); } Problem is when i sele

Solution 1:

You need to pass a title from FragmentPagerAdapter to MenuListFragment() based on the title then you can load the relevant data into the listview. you can refer this link on how to pass variable from FragmentPagerAdapter to Fragment.

Edit: i have added a sample application please check this link


Post a Comment for "I Am Trying To Add Dynamic Title In Tablayout But On Basis Of That Title I Want To Display Different Products"