Created
March 1, 2015 23:28
-
-
Save arod2634/50d302ee124caf95f26b to your computer and use it in GitHub Desktop.
Android Relative Layout Vertical Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:weightSum="1"> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="150dp" | |
android:text="One" | |
android:id="@+id/textView" | |
android:layout_alignParentTop="true" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="150dp" | |
android:text="Two" | |
android:id="@+id/textView2" | |
android:layout_below="@+id/textView" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" | |
android:layout_alignParentEnd="false" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="150dp" | |
android:text="Three" | |
android:id="@+id/textView3" | |
android:layout_below="@+id/textView2" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="150dp" | |
android:text="Four" | |
android:id="@+id/textView4" | |
android:layout_below="@+id/textView3" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment