阅读背景:

如何在Recycler.Adapter上调用getFragmentManager?

来源:互联网 

I am converting ListView of my app to RecyclerView. On ListView, it was very easy to implement OnClickListener but in RecyclerView, we have to do it in adapter. I want to open a new Fragment when user clicks on a item. To do this I have to call FragmentManager in adapter which I am not able to do. This is my code of RecyclerAdapter:I am converting ListView of my app to RecyclerV




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: