Create your account

Already have an account? Login here

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 buy this course, or login to your account to view this lesson.

Alright, buy it for $25 Or login to your account if you purchased already.

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