Skip to content

Instantly share code, notes, and snippets.

@ankit-lakhanpal
Created August 19, 2015 14:52
Show Gist options
  • Save ankit-lakhanpal/ca46af56a31318e64b21 to your computer and use it in GitHub Desktop.
Save ankit-lakhanpal/ca46af56a31318e64b21 to your computer and use it in GitHub Desktop.
top section fragments
<?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">
<EditText
android:id="@+id/top1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp"
android:width="300dp"
/>
<EditText
android:id="@+id/bottom1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/top1"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp"
android:width="300dp"
android:inputType="none" />
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="63dp"
android:text="@string/button_text"
android:width="150dp"
android:layout_below="@+id/bottom1"
android:layout_centerHorizontal="true" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment