问题
What I've done: I have a viewpager with 4 fragments which inflate the same layout containing a RecyclerView. I've built a single Adapter for all of the fragments. When I click an item it loads data and appends the data to a List and set the new data to the adapter.
Problem: the problem is when I change the data of particular recyclerview of a particular fragment the changes take effect on all the recyclerviews.
来源:https://stackoverflow.com/questions/28472702/using-a-single-recyclerview-adapter-for-multiple-recyclerviews