Latest News

Source Code Entri Data Xml Di Aplikasi Android

//Author: midasoft.blogspot.com
<?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="match_parent"
    android:orientation="vertical" >

    <EditText
        android:id="@+id/nama_barang"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="15dp"
        android:ems="10"
        android:hint="@string/nama_barang"
        android:inputType="text" />

        <EditText
            android:id="@+id/merk_barang"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="15dp"
            android:ems="10"
            android:hint="@string/merk_barang"
            android:inputType="text" >
 
        <requestFocus />
    </EditText>

        <EditText
            android:id="@+id/harga_barang"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="15dp"
            android:ems="10"
            android:hint="@string/harga_barang"
            android:inputType="number" >
 
        <requestFocus />
    </EditText>
 
    <Button
        android:id="@+id/buttom_submit"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:hint="@string/buttom_submit"
        android:onClick="submit"
        android:text="Submit" />

</LinearLayout>


0 Response to "Source Code Entri Data Xml Di Aplikasi Android"