Got a YouTube account?

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

English subtitles

← Editing The UI

Get Embed Code
4 Languages

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

  1. Now, here you can see the very simple
    UI that we're putting into this app.
  2. You should edit your
    layout.xml file to match this.
  3. Note that you should add an onClick
    attribute to the button, and you should
  4. call it addGeofencesButtonHandler
    as I show here.
  5. Also for good practice,
  6. don't hard code the string with
    the caption of the button.
  7. The caption here
    are the words Add Geofences.
  8. Instead, use the strings.xml file and
  9. put a reference to that
    in your UI declaration.
  10. When you're done,
    check this box to continue.