Return to Video

Setup App

  • 0:00 - 0:02
    So great,
    you've now created your application.
  • 0:02 - 0:05
    So the next thing to do
    is to edit your layout.
  • 0:05 - 0:09
    To do this, you're going to use
    a StreetViewPanoramaFragment.
  • 0:10 - 0:15
    You can add a StreetViewPanoramaFragment
    to your layout.xml simply like this.
  • 0:15 - 0:17
    You create a new fragment,
    and you give it this name,
  • 0:17 - 0:23
    com.google.android.gms.maps.StreetViewP-
    anoramaFragment.
  • 0:23 - 0:28
    Now over time this name may change
    because of refactoring of the code, so
  • 0:28 - 0:30
    if this doesn't work for you,
    just check the latest documentation for,
  • 0:30 - 0:34
    StreetViewPanoramaFragment, to
    see the package that it's in.
  • 0:34 - 0:37
    Once you've done that,
    in the standard way, you give it a name.
  • 0:37 - 0:39
    I've just called it streetViewPanorama.
  • 0:39 - 0:41
    And you give it a width and a height.
  • 0:41 - 0:43
    And for this application,
    I just matched the parent to them.
  • 0:43 - 0:48
    So go ahead and edit your layout.xml
    now to add this fragment to it.
Tytuł:
Setup App
Opis:

more » « less
Video Language:
English
Team:
Udacity
Projekt:
ud876-4 - Google Play Services - Maps
Duration:
0:50
Udacity Robot edited angielski subtitles for 04-04 Setup App
Udacity Robot edited angielski subtitles for 04-04 Setup App
Cogi-Admin edited angielski subtitles for 04-04 Setup App

English subtitles

Revisions Compare revisions