Skip to content

Instantly share code, notes, and snippets.

@azec-pdx
Created January 13, 2015 18:27
Show Gist options
  • Save azec-pdx/1a1b6ebaa958e7e80a65 to your computer and use it in GitHub Desktop.
Save azec-pdx/1a1b6ebaa958e7e80a65 to your computer and use it in GitHub Desktop.

Revisions

  1. azec-pdx created this gist Jan 13, 2015.
    39 changes: 39 additions & 0 deletions gistfile1.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" >

    <TextView
    android:id="@+id/textView1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    android:gravity="center"
    android:text="Celsius to Farenheit"
    android:textSize="30dp" />

    <EditText
    android:id="@+id/editText1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:numeric="integer"
    android:singleLine="true" />

    <Button
    android:id="@+id/button1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    android:gravity="center"
    android:text="Convert to Farenheit" />

    <TextView
    android:id="@+id/tv_result"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:text="" android:textSize="26dp"/>

    </LinearLayout>