Join Albert Lo for an in-depth discussion in this video Account selection using ActionBar UI, part of Android Development: Modern Android UI Design Elements.
- [Instructor] Now that we are finished with our changes…with Google Photos Fragment, let's head over…to Main Activity.…So I'm going to open the project view.…And we will select the Android project view…and select main activity and we close our project view.…So what we want to do in our main activity is…add a ui control in our action bar that will ask the user…to select a Google account.…
So lets scroll up to on Create Options menu.…That's around line 61.…So let's go up there.…In this method, we see that r.menu.main is being inflated.…So let's go into that with command B.…And we're going to add a new menu item to our action bar.…So, we'll add a tag item.…And we'll give it an id.…And our id will be select account.…
The order and category, we want it to appear…before the settings.…So we'll give it a value of 50.…Title, we're going to add a title account…and I think we can reuse account name.…Let's just check.…Account name has a format specifier.…So let's create our own account name.…So we'll call it account and we'll convert it…
- 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.