Skip to content

Instantly share code, notes, and snippets.

@jwhitehorn
Created February 11, 2014 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwhitehorn/8944027 to your computer and use it in GitHub Desktop.
Save jwhitehorn/8944027 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:id="@+id/RelativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="212dp"
android:text="Convert"
android:onClick="convert" />
<EditText
android:id="@+id/unconvertedEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/button1"
android:layout_alignParentLeft="true"
android:layout_marginBottom="72dp"
android:layout_toLeftOf="@+id/button1"
android:ems="10"
android:inputType="number" />
<TextView
android:id="@+id/convertedTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/unconvertedEditText"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/unconvertedEditText"
android:layout_toRightOf="@+id/button1"
android:ems="10" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment