Join Albert Lo for an in-depth discussion in this video Incorporate CheckBox view, part of Android Development: Modern Android UI Design Elements.
- [Presenter] Now that we have a code for our…checkBox completed, we are ready to incorporate…our custom view checkBox into Google Photos view holder.…So let's open up our project view…and let's go into our package…and under UI we go into the Google Photos package…and select view holders…and select Google Photos view holder.…Now I'm going to dismiss our project view.…
So to incorporate our custom view checkBox…we first need to initialize it, so let's declare…a private member,…checkBox, and we'll name it checkBox.…Now let's go into our constructor right under image…on line 29, let's initialize our checkBox.…Call in getRootView, findViewById,…and the ID we want is check_box.…
We will also need to initialize the adaptor…so let's create another private class member.…Type is albumGridAdapter…and we'll name it adapter…and let's go ahead to line 32.…We will initialize the reference here.…Now let's go down to set data.…So right below the line 40 let's add some code.…
If the item is selected we want to show the checkbox.…So let's add some code here.…
- 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.