Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2015 21:51
Show Gist options
  • Save anonymous/cd7fda2fa5c4062acb92 to your computer and use it in GitHub Desktop.
Save anonymous/cd7fda2fa5c4062acb92 to your computer and use it in GitHub Desktop.
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:text="Kunal"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
@wingmike
Copy link

wingmike commented Aug 4, 2024

1,there is no forward slash at the top lineaylayout 2,new atribiut android:orientation="vertical" 3,the linearlayout at the bottom starts with </

@eskadimasmelaku
Copy link

This XML code defines a vertical LinearLayout containing two TextView elements, one displaying "Guest List" and the other displaying "Kunal". Each element's width and height are set to wrap their respective content.

@zsegla
Copy link

zsegla commented Sep 2, 2024

  1. Linear Layout is Vertical
  2. Their are two TextViews
  3. Linear Layout is group view

@Gebrushet
Copy link

  1. Text Views are not centered,
  2. View Group not identified due to no background color,
  3. No spacing between Text views.

@tsediatgstu
Copy link

,there is no forward slash at the top lineaylayout

@Ashra0915
Copy link

The code starts with opening tag
the code includes new attribute called : android:orientation
The code has two TextViews as siblings
the code ends with closing tag

@Asli5455
Copy link

View GROUP is linear layout
Vertical Orientation
Two Text view

@Berhanus
Copy link

The parent[LinearLayout] has two TextView as the children and oriented vertical

@AdamBeyu
Copy link

parent view on the LinearLayout has two TextView and Children and Oriented Vertical

@FilimonAlem
Copy link

  1. There is new linear layout keyword.
  2. There is new android orientation attribute.
  3. There are two text views inside the linear layout.

@megersayedin
Copy link

  1. There is new linear layout keyword.
  2. There is new android orientation attribute.
  3. There are two text views inside the linear layout.

@megersayedin
Copy link

<script src="https://gist.github.com/anonymous/cd7fda2fa5c4062acb92.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment