Join Albert Lo for an in-depth discussion in this video Fragment for Side NavDrawer, part of Android Development: Modern Android UI Design Elements.
- [Instructor] Our private method,…display Google Photos fragment, will do three things.…First, it will set the title.…Next, it will also start a new fragment,…and we will call this method set fragment.…We will pass in two parameters.…The first parameter will be an instance…of our Google Photos fragment.…
And the second parameter will be the name of the fragment.…Let's go ahead and create our private method, set fragment.…Set fragment will take two parameters.…First one is a fragment.…And it will be a v4 fragment…because jar layout requires v4 fragments.…So I'm going to select the v4 fragment.…
And I'm also going to specify a string parameter…for the fragment name.…So in this set fragment method, we are going to…call get support fragment manager.…And we will use that to start our new fragment.…We will use the replace method to start our new fragment.…The container view ID will be something…that we have to define.…
And the other parameters will be ones…that are passed in in this method,…fragment and fragment name.…
- 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.