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

DrMisDan commented Jul 24, 2025

Separate opening and closing tag used
Parent view is in Linear layout and Vertical orientation
Within it are 2 child TextViews
Width and Height of both parent and child views is set to automatically resize by the special code wrap_content

@lidros-ai
Copy link

linearLayout is a parent view
TextView is a child

@DestaGurmessa
Copy link

  1. one parent view group
  2. two child view

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