Skip to content

Instantly share code, notes, and snippets.

@etithakur
Forked from anonymous/Guest list layout
Created July 22, 2021 11:26
Show Gist options
  • Save etithakur/00b22f268a69c83ab61ef8b5ccf3d854 to your computer and use it in GitHub Desktop.
Save etithakur/00b22f268a69c83ab61ef8b5ccf3d854 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>
@etithakur
Copy link
Author

These are the following observations:

  1. Its opening tag starts with LinearLayout which represents the View Group.
  2. There is a new attribute- android:orientation.
  3. There are two TextViews aligned vertically.
  4. Closing tag is used in different way than before.

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