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>
@SandeepLakka
Copy link

  • Parent view orientation is set as vertical to allow for vertical stacking
  • Each text views are placed according to the order they are given in the parent layout
  • Parent view is LinearLayout

@meedaf12
Copy link

meedaf12 commented Nov 7, 2022

1- ViewGroupe is LinearLayout
2- orientation vertical
3- two child

@lalaodder
Copy link

  1. ViewGroup it's a element "LinearLayout".
  2. The sentence indicates that the orientation of the childs contained within the ViewGroup, wil be aligned vertically.
  3. The 2 childs elements are "TextView".

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