Answer the question
In order to leave comments, you need to log in
How to open a fragment on clicking item Recycler.View if the recycler view itself is also in the fragment?
I have an activity with a navigation drawer and three fragments. One of them has a recycler view. It is necessary to make it so that when you click on its elements, a new fragment opens. How to do it? I'm trying to register through the adapter
public FragmentManager f_manager;
public MessagesAdapter(Context mContext, ArrayList<MessagesObject> MessagesArrayList, ChatFragment chatFragment , FragmentManager f_manager) {
this.mContext = mContext;
this.f_manager = f_manager;
this.chatFragment = chatFragment;
this.MessagesArrayList = MessagesArrayList;
}
mAdapter = new MessagesAdapter(getContext(), chatRoomArrayList);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question