Join Albert Lo for an in-depth discussion in this video Create a custom layout XML, part of Android Development: Modern Android UI Design Elements.
- [Instructor] Let's switch over to activity_main layout.…We are going to go to line 23…of activity_main layout which is here…and we're going to delete this line.…This will remove the default side navigation drawer items.…What we want to do now is to replace it…with our own custom side navigation drawer items.…The easiest way to do that…is to add a LinearLayout container.…I'm going to add a LinearLayout container here.…
The width is match_parent…and the height is going to be wrap_content.…I'm also going to define the orientation as vertical.…So, our general strategy here…is to have a LinearLayout container…containing a series of TextViews…as our side navigation drawer items.…We also want to separate the TextViews…with a divider,…so I'm going to create a new layout here…and I'm going to include it.…
The layout name will be divider.…And I'm going to use alt return…to define my new layout.…The new layout will just contain a basic view.…I will add this also to my source control repository.…Now, I'm going to clean up this layout 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.