Join Albert Lo for an in-depth discussion in this video Understand nav structure using fragments, part of Android Development: Modern Android UI Design Elements.
- [Male Voiceover] In terms of app navigation,…there are two ways to use the side navigation drawer.…The first way is to have all navigation drawer items…start an activity when tapping on a navigation drawer item…as indicated by this diagram.…When we slide out the navigation drawer and…we tap on an item, it will start the corresponding activity.…The other way of app navigation is to start a fragment…when the side navigation drawer item is tapped…as indicated by this diagram.…We create four fragments, each one…corresponding to side navigation drawer item…and when we tap on a side navigation drawer item…it will start the corresponding fragment.…
The advantage of using fragments in this way is…that you can reuse the same activity…i.e. the main navigation drawer activity…for showing the different screens…when tapping on the side navigation drawer item.…As a side note, this is one of the better use cases…of fragments.…Currently in the industry, there are two schools of thought…regarding how to use fragments.…The first school of thought is two have one single activity…
- 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.