English subtitles

← Setup App

Get Embed Code
4 Languages

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

  1. So great,
    you've now created your application.
  2. So the next thing to do
    is to edit your layout.
  3. To do this, you're going to use
    a StreetViewPanoramaFragment.
  4. You can add a StreetViewPanoramaFragment
    to your layout.xml simply like this.
  5. You create a new fragment,
    and you give it this name,
  6. com.google.android.gms.maps.StreetViewP-
    anoramaFragment.
  7. Now over time this name may change
    because of refactoring of the code, so
  8. if this doesn't work for you,
    just check the latest documentation for,
  9. StreetViewPanoramaFragment, to
    see the package that it's in.
  10. Once you've done that,
    in the standard way, you give it a name.
  11. I've just called it streetViewPanorama.
  12. And you give it a width and a height.
  13. And for this application,
    I just matched the parent to them.
  14. So go ahead and edit your layout.xml
    now to add this fragment to it.