mirror of
https://github.com/hmalik144/Mochee_Kent.git
synced 2025-12-10 03:05:20 +00:00
292 lines
13 KiB
XML
292 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout 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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context="com.example.h_mal.mochee.BasketActivity"
|
|
android:descendantFocusability="beforeDescendants"
|
|
android:focusableInTouchMode="true"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/emptyView"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_centerInParent="true"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:padding="20dp"
|
|
android:text="Cart Is Empty"
|
|
android:textSize="20sp" />
|
|
|
|
<Button
|
|
android:id="@+id/emptyCart"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="#484950"
|
|
android:padding="10dp"
|
|
android:text="Continue Shopping"
|
|
android:textColor="#ffffff" />
|
|
</LinearLayout>
|
|
|
|
<ProgressBar
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:id="@+id/progressBar"/>
|
|
|
|
<android.support.v4.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/whole_view">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<com.example.h_mal.mochee.NonScrollListView
|
|
android:id="@+id/list_item_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:layout_editor_absoluteX="8dp"
|
|
tools:layout_editor_absoluteY="8dp" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentStart="true"
|
|
android:text="Subtotal"
|
|
android:textColor="#303132" />
|
|
|
|
<TextView
|
|
android:id="@+id/subtotalTV"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentTop="true"
|
|
android:text="£###.##"
|
|
android:textColor="#303132" />
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingTop="35dp"
|
|
android:paddingBottom="12dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="Insert Shipping Details"
|
|
android:textColor="#303132"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold" />
|
|
|
|
<EditText
|
|
android:id="@+id/detailsName"
|
|
style="@style/Widget.AppCompat.EditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp"
|
|
android:ems="10"
|
|
android:hint="Name"
|
|
android:inputType="textPersonName"
|
|
android:minLines="7" />
|
|
|
|
<EditText
|
|
android:id="@+id/detailAddress"
|
|
style="@style/Widget.AppCompat.EditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="150dp"
|
|
android:layout_margin="6dp"
|
|
android:ems="10"
|
|
android:gravity="top|left"
|
|
android:hint="Address"
|
|
android:inputType="text" />
|
|
<EditText
|
|
android:id="@+id/detailCountry"
|
|
style="@style/Widget.AppCompat.EditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp"
|
|
android:ems="10"
|
|
android:hint="Country"
|
|
android:focusableInTouchMode="false"
|
|
android:inputType="textPersonName" />
|
|
<EditText
|
|
android:id="@+id/detailEmail"
|
|
style="@style/Widget.AppCompat.EditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp"
|
|
android:ems="10"
|
|
android:hint="Email (Optional)"
|
|
android:inputType="textEmailAddress" />
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp">
|
|
|
|
<TextView
|
|
android:id="@+id/deliveryTypeTV"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Delivery"
|
|
android:textColor="#303132" />
|
|
|
|
<TextView
|
|
android:id="@+id/deliveryPriceTV"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentTop="true"
|
|
android:text="£##.##"
|
|
android:textColor="#303132" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/addNoteTV"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_margin="6dp"
|
|
android:text="Add a note"
|
|
android:textColor="#303132"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_margin="6dp"
|
|
android:src="@drawable/downarrow" />
|
|
|
|
</RelativeLayout>
|
|
<EditText
|
|
android:id="@+id/addNoteET"
|
|
style="@style/Widget.AppCompat.EditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="150dp"
|
|
android:layout_margin="6dp"
|
|
android:ems="10"
|
|
android:gravity="top|left"
|
|
android:hint="Message"
|
|
android:inputType="text"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:id="@+id/EnterPromoCode">
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_margin="6dp"
|
|
android:text="Enter A Promo Code"
|
|
android:textColor="#303132"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_margin="6dp"
|
|
android:src="@drawable/downarrow" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/promocodeLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<EditText
|
|
android:id="@+id/promoCodeET"
|
|
style="@style/Widget.AppCompat.EditText"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="5"
|
|
android:hint="Enter A Promo Code here" />
|
|
|
|
<Button
|
|
android:id="@+id/promoCodeBtn"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:text="Apply" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp">
|
|
|
|
<TextView
|
|
android:id="@+id/totalPriceTV"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="total"
|
|
android:textColor="#303132" />
|
|
|
|
<TextView
|
|
android:id="@+id/sumTotalTV"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentTop="true"
|
|
android:text="£###.##"
|
|
android:textColor="#303132" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/button3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Button" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</android.support.v4.widget.NestedScrollView>
|
|
</RelativeLayout>
|