Advertisement
Guest User

Main.axml

a guest
Nov 23rd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.25 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:orientation="vertical"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:padding="20dp">
  7.     <TextView
  8.        android:text="Hitung Diskon"
  9.        android:textAppearance="?android:attr/textAppearanceMedium"
  10.        android:layout_width="match_parent"
  11.        android:layout_height="wrap_content"
  12.        android:id="@+id/textView1"
  13.        android:textStyle="bold"
  14.        android:layout_marginBottom="15.5dp" />
  15.     <TextView
  16.        android:text="Jumlah Pembelian Barang"
  17.        android:textAppearance="?android:attr/textAppearanceSmall"
  18.        android:layout_width="match_parent"
  19.        android:layout_height="wrap_content"
  20.        android:id="@+id/textView2"
  21.        android:layout_marginTop="6.5dp" />
  22.     <TextView
  23.        android:text="Harga Barang Rp. 300.000,-"
  24.        android:textAppearance="?android:attr/textAppearanceSmall"
  25.        android:layout_width="match_parent"
  26.        android:layout_height="wrap_content"
  27.        android:id="@+id/textView2"
  28.        android:layout_marginTop="6.5dp" />
  29.     <EditText
  30.        android:layout_width="match_parent"
  31.        android:layout_height="wrap_content"
  32.        android:id="@+id/inputDiskon"
  33.        android:hint="input jumlah"
  34.        android:layout_marginTop="7.0dp" />
  35.     <Button
  36.        android:text="Hitung"
  37.        android:layout_width="match_parent"
  38.        android:layout_height="wrap_content"
  39.        android:id="@+id/btnHitung"
  40.        android:layout_marginTop="5.5dp" />
  41.     <TextView
  42.        android:text="Jumlah Pembelian"
  43.        android:textAppearance="?android:attr/textAppearanceMedium"
  44.        android:layout_width="match_parent"
  45.        android:layout_height="wrap_content"
  46.        android:id="@+id/textView3"
  47.        android:layout_marginTop="10.0dp" />
  48.     <TextView
  49.        android:text="50"
  50.        android:textAppearance="?android:attr/textAppearanceMedium"
  51.        android:layout_width="match_parent"
  52.        android:layout_height="wrap_content"
  53.        android:id="@+id/txtJumlahBeli" />
  54.     <TextView
  55.        android:text="Harga Sebelum Diskon"
  56.        android:textAppearance="?android:attr/textAppearanceMedium"
  57.        android:layout_width="match_parent"
  58.        android:layout_height="wrap_content"
  59.        android:id="@+id/textView5"
  60.        android:layout_marginTop="5.0dp" />
  61.     <TextView
  62.        android:text="1500000"
  63.        android:textAppearance="?android:attr/textAppearanceMedium"
  64.        android:layout_width="match_parent"
  65.        android:layout_height="wrap_content"
  66.        android:id="@+id/txtHargaSebelumDiskon" />
  67.     <TextView
  68.        android:text="Harga Setelah Diskon"
  69.        android:textAppearance="?android:attr/textAppearanceMedium"
  70.        android:layout_width="match_parent"
  71.        android:layout_height="wrap_content"
  72.        android:id="@+id/textView7"
  73.        android:layout_marginTop="7.5dp" />
  74.     <TextView
  75.        android:text="1000000"
  76.        android:textAppearance="?android:attr/textAppearanceMedium"
  77.        android:layout_width="match_parent"
  78.        android:layout_height="wrap_content"
  79.        android:id="@+id/txtHargaSetelahDiskon" />
  80. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement