Join Albert Lo for an in-depth discussion in this video Overview of custom views, part of Android Development: Modern Android UI Design Elements.
- [Instructor] An essential part of any modern Android UI design is the ability to customize the view. There are many use cases for creating a custom view. The first is extending or enforcing the behavior of standard Android SDK View components, such as TextView, ImageView, or RecyclerView. The next use case is creating a composite view, where we create a parent container view, which is typically a linear layout or a relative layout, and start adding child views.
Another use case would be for facilitating animations, and the last use case would be to support view configuration or customization through the layout XML parameters. The use case of enforcing behavior has already been covered by the square relative layout that we created previously. In the case of our app, the use case of supporting view configuration or customization from layout XML has been partially covered by grid recycler view.
Grid recycler view can read from a standard Android layout attribute provided by the framework, which is, for grid recycler view, it's Android column width. In this chapter, we will take this one step further and learn how to read from a custom layout XML attribute that we create in the XML file.
- 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.