Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:padding="30dp"
- tools:context=".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="Pilih Menu :"
- android:textSize="25dp"/>
- <CheckBox
- android:id="@+id/WhippedCream_checkbox"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingLeft="16dp"
- android:text="Roti"
- android:textSize="15sp" />
- <CheckBox
- android:id="@+id/Chocolate_checkbox"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingLeft="16dp"
- android:text="Ice Cream"
- android:textSize="15sp" />
- <View
- android:layout_marginTop="10dp"
- android:layout_width="match_parent"
- android:layout_height="2dp"
- android:background="@color/colorAccent"/>
- <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>
- <View
- android:layout_marginTop="10dp"
- android:layout_width="match_parent"
- android:layout_height="2dp"
- android:background="@color/colorAccent"/>
- <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="Pesan Sekarang"/>
- </LinearLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement