Join Albert Lo for an in-depth discussion in this video Define BaseViewHolder, part of Android Development: Modern Android UI Design Elements.
- [Narrator] Now that we have our model defined,…we are ready to create the class…that will manage access to our models…and that will be the RecyclerView adapters.…But before we create the RecyclerView adapters,…let's first create an abstract base class…that will be used by our RecyclerView adapters.…This abstract base class is called BaseViewHolder…and its purpose is to define the structure…that all view holders must follow.…This also allows the RecyclerView adapter…to work with a generic abstract base class…instead of specific view holders for albums or photos.…
Okay, so let's go ahead and create our BaseViewHolder…by going to our package and under our package,…we're going to go under UI Google photos…and we're going to right mouse,…create a new package and we're going to call it view holders.…So now we have our new package…and we will create a new file, new Java class,…and we will call it BaseViewHolder…and the modifier we're going to select is abstract…because we have an abstract base class and press OK.…
- Creating a custom layout with XML
- Setting up OnClick handlers
- Making API calls
- Creating custom views
- Implementing ViewHolder objects
- Signing certificates
- Adding a checkbox
Skill Level Intermediate
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
1. Understanding the Side Navigation Drawer
2. Custom RecyclerView: Multiple View Types
3. Custom RecyclerView: ViewHolders
4. Understanding Custom Views
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.