Skip to content

Instantly share code, notes, and snippets.

@arod2634
Created March 1, 2015 23:04
Show Gist options
  • Save arod2634/d2ba3b48efcd8a6ff7d7 to your computer and use it in GitHub Desktop.
Save arod2634/d2ba3b48efcd8a6ff7d7 to your computer and use it in GitHub Desktop.
Android Linear Layout Example
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="One"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Two"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Three"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Four"
/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment