Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a recyclerview which contains a textview and image. I used on click listener on recyclerview. Now the problem is how can I send the text in textview and image in imageview to a fragment which is placed in next activity.

What I have tried:

I have tried various methods but I did not find a suitable solution.
Posted
Comments
David Crow 2-Dec-19 10:01am    
One way would be to use Preferences. Another would be to package the data into an Intent before starting the Activity (containing the Fragment).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900