Return to Video

LinearLayout

  • 0:01 - 0:04
    If you open up the link to the XML
    visualizer, that we provided
  • 0:04 - 0:07
    you in the instructor notes,
    then this is what it would look like.
  • 0:07 - 0:10
    We have a linear layout with a text
    view that says Guest List and
  • 0:10 - 0:13
    another text view that says Kunal.
  • 0:13 - 0:17
    The first task was to add more text
    views to create the guest list.
  • 0:17 - 0:20
    So let's copy and
    paste this XML element.
  • 0:21 - 0:24
    Cool, let's add some other
    people besides Kunal.
  • 0:24 - 0:26
    Let's add Kagure and also Lyla.
  • 0:28 - 0:29
    Awesome.
  • 0:29 - 0:32
    So now Kagure and
    Lyla show up under Kunal's name.
  • 0:32 - 0:34
    We can also change any of
    the existing text use.
  • 0:34 - 0:37
    We change to the VIP list.
  • 0:37 - 0:42
    The second task was to change the
    orientation attribute to be horizontal.
  • 0:42 - 0:46
    This immediately changes all the text
    views to appear side by side
  • 0:46 - 0:48
    instead of one on top of the other.
Title:
LinearLayout
Description:

more » « less
Video Language:
English
Team:
Udacity
Project:
UD837 - Android for Beginners
Duration:
0:49

English subtitles

Revisions Compare revisions