Answer the question
In order to leave comments, you need to log in
How to implement an action when clicking on a RecycleView item creates a new Fragment?
Hello, I can’t find the best way to implement the created RecycleView, when clicking on a certain Item, a new fragment was created with the necessary information? (Code with example would be cool)
Answer the question
In order to leave comments, you need to log in
Available in the Griffiths' textbook " Head First. Programming for Android " and in the textbook by Hardy, Phillips, Stewart and Marsicano " Android Programming for Professionals ".
100500 ways. The bottom line is to forward a listner (or a fragment manager at once) into the holder and put a clicklistner on the root view, in the implementation of which call the methods of the original listner / fragment manager
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question