164 lines
6.2 KiB
XML
164 lines
6.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:orientation="vertical"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/OrderCartdes"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:padding="10dp"
|
|
android:visibility="visible"
|
|
android:weightSum="1"
|
|
android:layout_margin="10dp"
|
|
android:background="@drawable/newbacground"
|
|
android:gravity="center_vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.7"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/FoodName"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:text="CHETTINAD CHETTINADMUTTON BIRYANI"
|
|
android:textColor="#000000"
|
|
android:textSize="25dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/umpnames"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/black"
|
|
android:layout_marginHorizontal="5dp"
|
|
android:text="(2 PCS)"
|
|
android:textSize="25dp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/totalPrice"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="₹ 230.00"
|
|
android:textColor="#228B22"
|
|
android:textSize="30dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/decrement"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:src="@drawable/minus_box"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:contentDescription="Decrease Quantity"/>
|
|
|
|
<TextView
|
|
android:id="@+id/count"
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="0"
|
|
android:gravity="center"
|
|
android:textSize="35dp"
|
|
android:textStyle="bold"
|
|
android:layout_marginHorizontal="30dp"
|
|
android:textColor="@android:color/black"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/increament"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:contentDescription="Increase Quantity"
|
|
android:src="@drawable/add_box"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/remove"
|
|
android:layout_width="150dp"
|
|
android:layout_height="80dp"
|
|
android:gravity="center"
|
|
android:padding="7dp"
|
|
android:layout_marginHorizontal="@dimen/dp_50"
|
|
android:background="@drawable/btnremovered">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="✖ REMOVE"
|
|
android:textSize="@dimen/dp_25"
|
|
android:fontFamily="@font/popins_medimum"
|
|
android:gravity="center"
|
|
android:textColor="#FF0000" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3">
|
|
|
|
<ImageView
|
|
android:id="@+id/Foodimages"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="end"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/orderpic" />
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardCornerRadius="5dp"
|
|
android:layout_margin="3dp"
|
|
android:layout_gravity="end"
|
|
app:cardBackgroundColor="#FFFFFF"
|
|
app:cardElevation="4dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/OCDineIn"
|
|
android:layout_width="@dimen/dp_50"
|
|
android:layout_height="50dp"
|
|
android:layout_margin="5dp"
|
|
android:src="@drawable/dinein"
|
|
android:layout_gravity="top|start" />
|
|
|
|
<!-- Small Icon 2 (Takeaway) -->
|
|
<ImageView
|
|
android:id="@+id/OCTakeAway"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_margin="5dp"
|
|
android:src="@drawable/takeaway2"
|
|
android:visibility="gone"
|
|
android:layout_gravity="top|start"
|
|
android:layout_marginStart="35dp" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|