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

84. Adapter With No Items View

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 fixes a bug where we may be taken to the empty screen if there are no items to display while our filter is set to show only complete or incomplete items. We add a third type of item inside our Adapter that comes into the picture when the sorting option shows only complete or incomplete items and the RecyclerView has no items to show under the categories. We modify the getItemViewType and getItemCount methods to reflect the conditions under with the No Items View is shown to the user.

Course Cirriculum