YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Adding the Map Fragment to The UI

Get Embed Code
5 Languages

Showing Revision 3 created 05/25/2016 by Udacity Robot.

  1. The user interface for your app
    is to find an activity_main.xml.
  2. We're going to add a map fragment
    to our app using this code.
  3. As you can see, it is a fragment, and
  4. it is using
    com.google.android.gms.maps.MapFragment.
  5. It's not really doing much
    more other than that.
  6. We're just adding a fragment, matching
    it to the parent's layout and using,
  7. like I said,
    this map fragment to find it.
  8. Take a moment now to take this code and
  9. add it to your app with
    an activity_main.xml.
  10. Check this box when you're done.