Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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:id="@+id/resultText" android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<EditText android:id="@+id/firstValue" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:hint="Enter a numeric value"/>
<EditText android:id="@+id/secondValue" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:hint="Enter a numeric value"/>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content"
android:weightSum="3">
<Button android:id="@+id/add" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="Add" android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment