xml.pesanan

<?xml version="1.0" encoding="utf-8"?>
<ScrollView android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="com.example.android.justjava.MainActivity">
    <EditText
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:hint="Masukan nama anda"
        android:id="@+id/edt_name"
        android:inputType="text"/>
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="TOPPINGS"
        android:textSize="25dp"/>
    <CheckBox
        android:id="@+id/WhippedCream_checkbox"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Whipped Cream"
        android:paddingLeft="16dp"
        android:textSize="15sp"/>
    <CheckBox
        android:id="@+id/Chocolate_checkbox"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Chocolate"
        android:paddingLeft="16dp"
        android:textSize="15sp"/>



    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="jumlah"
        android:textSize="25dp"
        android:textAllCaps="true"
        android:layout_marginBottom="16dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <Button
            android:layout_width="48dp"
            android:onClick="increment"
            android:text="+"

            android:layout_height="48dp" />
        <TextView
            android:textColor="#212121"
            android:layout_gravity="center"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="0"
            android:paddingRight="8dp"
            android:paddingLeft="8dp"
            android:id="@+id/quantity_textview"
            android:textSize="25dp"/>
        <Button
            android:layout_width="48dp"
            android:onClick="decrement"
            android:text="-"

            android:layout_height="48dp" />
    </LinearLayout>


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Harga"
        android:textSize="30dp"
        android:textAllCaps="true"
        android:layout_marginBottom="16dp"/>
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="0"
        android:textColor="#212121"
        android:id="@+id/price_textview"
        android:textSize="25dp"/>
    <Button
        android:layout_width="wrap_content"
        android:layout_marginBottom="16dp"
        android:onClick="Submitorder"
        android:layout_height="wrap_content"
        android:text="Order"/>


</LinearLayout>
    </ScrollView>

Tidak ada komentar:

Posting Komentar