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

74. Making the Footer work

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 events from the Button contained in the footer of the RecyclerView to add items to the database. We get a reference to the Button inside the FooterHolder class and implement the onClickListener which will fire whenever the Button is pressed. We propagate this event from the Adapter to the Activity where we can display the Dialog Add that finally lets the person add the item to the database.

Course Cirriculum