Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:theme="@android:style/Theme.NoTitleBar"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:background="#ddd"
- android:padding="10dp"
- tools:context=".MainActivity">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="3"
- android:textColor="#000"
- android:text="Kode Obat"/>
- <EditText
- android:id="@+id/editText_kode"
- style="@android:style/Widget.Material.Light.EditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:ems="10"
- android:hint="Kode Obat"
- android:inputType="textPersonName" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="3"
- android:textColor="#000"
- android:text="Nama Obat"/>
- <EditText
- android:id="@+id/editText_obat"
- style="@android:style/Widget.Material.Light.EditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:ems="10"
- android:hint="Nama Obat"
- android:inputType="textPersonName" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="3"
- android:textColor="#000"
- android:text="Jenis Obat"/>
- <EditText
- android:id="@+id/editText_jenis"
- style="@android:style/Widget.Material.Light.EditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:ems="10"
- android:hint="Jenis Obat"
- android:inputType="textPersonName"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="3"
- android:textColor="#000"
- android:text="Indikasi"/>
- <EditText
- android:id="@+id/editText_indikasi"
- style="@android:style/Widget.Material.Light.EditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:ems="10"
- android:hint="Indikasi"
- android:inputType="textPersonName"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="3"
- android:textColor="#000"
- android:text="Tanggal Kadaluwarsa"/>
- <EditText
- android:id="@+id/editText_tanggal"
- style="@android:style/Widget.Material.Light.EditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:ems="10"
- android:hint="Tanggal Kadaluwarsa"
- android:inputType="textPersonName"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="3"
- android:textColor="#000"
- android:text="Harga"/>
- <EditText
- android:id="@+id/editText_harga"
- style="@android:style/Widget.Material.Light.EditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:ems="10"
- android:hint="Harga"
- android:inputType="textPersonName"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="3"
- android:textColor="#000"
- android:text="Id"/>
- <EditText
- android:id="@+id/editText_id"
- style="@android:style/Widget.Material.Light.EditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:ems="10"
- android:hint="Id"
- android:inputType="textPersonName" />
- </LinearLayout>
- <LinearLayout
- android:layout_marginTop="20dp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <Button
- android:id="@+id/button_add"
- style="@android:style/Widget.Material.Light.Button"
- android:background="@color/colorAccent"
- android:textColor="@android:color/background_light"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Add Data"
- android:textAppearance="@android:style/TextAppearance.Material.Button"
- android:layout_weight="1" />
- <Button
- android:id="@+id/button_view"
- style="@android:style/Widget.Material.Light.Button"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/colorAccent"
- android:layout_weight="1"
- android:text="view all"
- android:textAppearance="@android:style/TextAppearance.Material.Button"
- android:textColor="@android:color/background_light" />
- </LinearLayout>
- <LinearLayout
- android:layout_marginTop="20dp"
- android:layout_width="match_parent"
- android:orientation="horizontal"
- android:layout_height="wrap_content">
- <Button
- android:id="@+id/button_update"
- style="@android:style/Widget.Material.Light.Button"
- android:background="@color/colorAccent"
- android:textColor="@android:color/background_light"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="Update"
- android:textAppearance="@style/TextAppearance.AppCompat.Button" />
- <Button
- android:id="@+id/button_delete"
- style="@android:style/Widget.Material.Light.Button"
- android:background="@color/colorAccent"
- android:textColor="@android:color/background_light"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="Delete"
- android:textAppearance="@style/TextAppearance.AppCompat.Button" />
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement