I am stuck in a situation where I have recyclerview with item data in it and I need to fetch same instance in all the fragments (three) of viewpager to operate on the same recyclerview.
What I have done :
I have made one separate fragment names as ItemListFragment with common buttons and option in the list and now trying to add it as child fragment to my viewpager fragments. I can add them as child fragment but at this point I have to create 3 different ItemListFragment for all the PrentFragments.
Kindly help me to overcome this situation or suggest any other way for using common recyclerlist in all the 3 fragments. I have searched stackoverflow but nothing is of any help.
Here is the image to get an idea about the situation: