Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:app="http://schemas.android.com/apk/res-auto"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:layout_width="fill_parent"
  5.     android:layout_height="fill_parent"
  6.     xmlns:android="http://schemas.android.com/apk/res/android">
  7.     <LinearLayout
  8.         android:layout_width="match_parent"
  9.         android:layout_height="match_parent"
  10.         android:orientation="vertical"
  11.         android:background="@drawable/bg"
  12.         tools:context="com.example.android.justjava.pesananActivity">
  13.  
  14.         <EditText
  15.             android:layout_width="match_parent"
  16.             android:layout_height="match_parent"
  17.             android:hint="Masukan Pesanan Anda"
  18.             android:id="@+id/edt_name"
  19.             android:inputType="text"/>
  20.  
  21.         <TextView
  22.             android:layout_width="wrap_content"
  23.             android:layout_height="wrap_content"
  24.             android:text="Bumbu"
  25.             android:textSize="25dp" />
  26.  
  27.         <CheckBox
  28.             android:id="@+id/pedas_checkbox"
  29.             android:layout_width="wrap_content"
  30.             android:layout_height="wrap_content"
  31.             android:text="Pedas"
  32.             android:paddingLeft="16dp"
  33.             android:textSize="15sp"/>
  34.         <CheckBox
  35.             android:id="@+id/sedang_checkbox"
  36.             android:layout_width="wrap_content"
  37.             android:layout_height="wrap_content"
  38.             android:text="Sedang"
  39.             android:paddingLeft="16dp"
  40.             android:textSize="15sp"/>
  41.  
  42.  
  43.  
  44.         <TextView
  45.             android:layout_width="wrap_content"
  46.             android:layout_height="wrap_content"
  47.             android:text="jumlah"
  48.             android:textSize="25dp"
  49.             android:textAllCaps="true"
  50.             android:layout_marginBottom="16dp"
  51.             app:layout_constraintBottom_toBottomOf="parent"
  52.             app:layout_constraintLeft_toLeftOf="parent"
  53.             app:layout_constraintRight_toRightOf="parent"
  54.             app:layout_constraintTop_toTopOf="parent" />
  55.         <LinearLayout
  56.             android:layout_width="match_parent"
  57.             android:layout_height="wrap_content"
  58.             android:orientation="horizontal">
  59.  
  60.             <Button
  61.                 android:layout_width="48dp"
  62.                 android:layout_height="48dp"
  63.                 android:onClick="increment"
  64.  
  65.                 android:text="+" />
  66.  
  67.             <TextView
  68.                 android:textColor="#212121"
  69.                 android:layout_gravity="center"
  70.                 android:layout_width="wrap_content"
  71.                 android:layout_height="wrap_content"
  72.                 android:text="0"
  73.                 android:paddingRight="8dp"
  74.                 android:paddingLeft="8dp"
  75.                 android:id="@+id/quantity_textview"
  76.                 android:textSize="25dp"/>
  77.             <Button
  78.                 android:layout_width="48dp"
  79.                 android:onClick="decrement"
  80.                 android:text="-"
  81.  
  82.                 android:layout_height="48dp" />
  83.         </LinearLayout>
  84.  
  85.  
  86.         <TextView
  87.             android:layout_width="wrap_content"
  88.             android:layout_height="wrap_content"
  89.             android:text="Harga"
  90.             android:textSize="30dp"
  91.             android:textAllCaps="true"
  92.             android:layout_marginBottom="16dp"/>
  93.         <TextView
  94.             android:layout_width="wrap_content"
  95.             android:layout_height="wrap_content"
  96.             android:text="0"
  97.             android:textColor="#212121"
  98.             android:id="@+id/price_textview"
  99.             android:textSize="25dp"/>
  100.  
  101.         <Button
  102.             android:layout_width="wrap_content"
  103.             android:layout_height="wrap_content"
  104.             android:layout_marginBottom="16dp"
  105.             android:onClick="Submitorder"
  106.             android:text="Order" />
  107.  
  108.  
  109.     </LinearLayout>
  110. </ScrollView>