Skip to content

Instantly share code, notes, and snippets.

@arnabkumarroy
Forked from anonymous/activity_main.xml
Created April 8, 2017 18:05

Revisions

  1. @invalid-email-address Anonymous created this gist Apr 8, 2015.
    35 changes: 35 additions & 0 deletions activity_main.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    <RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:padding="16dp">

    <TextView
    android:text="I’m in this corner"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true" />

    <TextView
    android:text="No, up here"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:layout_alignParentTop="true"
    android:layout_alignParentLeft="true" />

    <TextView
    android:text="Wait, I’m here"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentRight="true" />

    <TextView
    android:text="Actually, I’m here"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:layout_alignParentTop="true"
    android:layout_alignParentRight="true" />

    </RelativeLayout>