Create your account

Already have an account? Login here

Note: By joining, you will receive periodic emails from Coursetro. You can unsubscribe from these emails.

Create account

78. Handle RecyclerView Item Click

Design + Code an Android App from Scratch

Woah, wait a second..

Scrounge up some loose change to become a pro member, or login to your account to view this lesson.

Alright, join now. Or login to your account if you're already a pro member.

This video shows how to handle a RecyclerView’s item click. Create the DialogFragment subclass that displays the layout which we created in the previous video letting the person mark an item as complete. Set an OnClickListener for each row of the RecyclerView. When any item is clicked, dispatch the event to the main screen where we write code to display the Dialog. We also pass extra information with the help of a Bundle indicating the position of the item in the RecyclerView that was clicked by the user.

Course Cirriculum