Skip to content

Instantly share code, notes, and snippets.

@sidishere
Created December 24, 2019 11:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidishere/ca8f60a51c84036c914981ea5efa439b to your computer and use it in GitHub Desktop.
Save sidishere/ca8f60a51c84036c914981ea5efa439b to your computer and use it in GitHub Desktop.
<?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:paddingLeft="16dp"
android:paddingRight="16dp" >
    <TextView
android:id="@+id/view1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="View1" />
    <TextView
android:id="@+id/view2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_below="@id/view1"
android:text="View2"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/view3" />
    <TextView
android:text="View3"
android:id="@id/view3"
android:layout_width="96dp"
android:layout_height="wrap_content"
android:layout_below="@id/view1"
android:layout_alignParentRight="true" />
    <Button
android:layout_width="96dp"
android:layout_height="wrap_content"
android:layout_below="@id/view3"
android:layout_alignParentRight="true"
android:text="done" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment