S
S
sanke462018-01-13 17:03:44
Java
sanke46, 2018-01-13 17:03:44

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

2 answer(s)
S
Sergey Gornostaev, 2018-01-13
@sanke46

Available in the Griffiths' textbook " Head First. Programming for Android " and in the textbook by Hardy, Phillips, Stewart and Marsicano " Android Programming for Professionals ".

S
stoptalking, 2018-01-13
@stoptalking

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 question

Ask a Question

731 491 924 answers to any question