Join Albert Lo for an in-depth discussion in this video Define the BaseGridAdapter, part of Android Development: Modern Android UI Design Elements.
- [Commentator] Now we are ready to create our recycler…view adapter.…I've already named it base grid adapter here.…So let's also fix the build warning at the same time.…I'm moving our cursor over to base grid adapter…and we press Alt+Return.…We're going to create a new class.…And we're going to place our class into Google photos, so let's…delete viewholders.…Press okay.…
Now we have our new class, base grid adapter.…Base grid adapter will extend recyclerview.adapter.…And it will be of type base view holder.…Base grid adapter will maintain a reference to Google…photos manager, so let's create that class member here.…It's going to be a protected member.…And we will call it Google photos manager.…
Let's create a constructor here, it will be a public…constructor and we'll just call it base grid adapter.…We will not need any input parameters.…And in our constructor we're going to initialize Google…photos manager.…Now we're going to implement a couple more methods…in this class.…The first method is on bind view holder.…
- 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.