Skip to content

Instantly share code, notes, and snippets.

@bkase
Created January 18, 2012 23:00
Show Gist options
  • Save bkase/1636360 to your computer and use it in GitHub Desktop.
Save bkase/1636360 to your computer and use it in GitHub Desktop.
main.xml for cmu mobile apps club (put this in res/layout/)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<EditText
android:id="@+id/textbox"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="numberDecimal" />
<Button
android:id="@+id/areaButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Area!"
android:onClick=""/>
<Button
android:id="@+id/clearButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Clear!" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment