Kamis, 29 Mei 2014

Coding Java Android



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

<TextView
android:layout_height="wrap_content"
android:text="Kalkulator"
android:layout_width="fill_parent"
android:gravity="center"/>
<TextView
android:text="Angka 1"
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
<EditText
android:id="@+id/I1"
android:layout_width="fill_parent"
android:numeric="integer"
android:layout_height="wrap_content">
</EditText>
<TextView
android:text="Angka 2"
android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>

<EditText
android:id="@+id/I2"
android:layout_width="fill_parent"
android:numeric="integer"
android:layout_height="wrap_content">
</EditText>
<TextView
android:text="Angka 3"
android:id="@+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
<EditText
android:id="@+id/I1"
android:layout_width="fill_parent"
android:numeric="integer"
android:layout_height="wrap_content">
</EditText>
<Button android:text="+"
android:id="@+id/RTambah"
android:layout_height="wrap_content" android:layout_width="50dp">
</Button>
<Button android:text="* " android:layout_height="wrap_content" android:id="@+id/RKali" android:layout_width="49dp"></Button>
<Button android:text="/"
android:id="@+id/RBagi"
android:layout_height="wrap_content" android:layout_width="50dp">
</Button>
<Button android:text="- " android:layout_height="wrap_content" android:id="@+id/RKurang" android:layout_width="48dp"></Button>
<Button android:text="clear "
android:id="@+id/Rclear"
android:layout_height="wrap_content" android:layout_width="277dp">
</Button>
<Button android:text="hasil "
android:id="@+id/Rhasil"
android:layout_height="wrap_content" android:layout_width="275dp">
</Button>

Tidak ada komentar:

Posting Komentar