Design + Code an Android App from Scratch
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.