Skip to content

Instantly share code, notes, and snippets.

@manishkpr
Created December 30, 2016 06:03
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 manishkpr/99543fb5702df7185c1bafddd6bc0880 to your computer and use it in GitHub Desktop.
Save manishkpr/99543fb5702df7185c1bafddd6bc0880 to your computer and use it in GitHub Desktop.
<?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