192 lines
8.1 KiB
XML
192 lines
8.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
<LinearLayout
|
|
android:visibility="visible"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1"
|
|
android:gravity="center">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="220dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
app:cardCornerRadius="15dp"
|
|
android:layout_margin="10dp"
|
|
app:cardBackgroundColor="@color/grey">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="10dp">
|
|
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<!-- Main Image -->
|
|
<ImageView
|
|
android:id="@+id/imgord"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="100dp"
|
|
android:layout_gravity="center"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/orderpic" />
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="3dp"
|
|
app:cardBackgroundColor="#FFFFFF"
|
|
app:cardElevation="4dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/SSADineIn"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:visibility="visible"
|
|
android:layout_margin="5dp"
|
|
android:src="@drawable/dinein"
|
|
android:layout_gravity="top|start" />
|
|
|
|
<!-- Small Icon 2 (Takeaway) -->
|
|
<ImageView
|
|
android:id="@+id/SSATakeAway"
|
|
android:layout_width="24dp"
|
|
android:layout_height="21dp"
|
|
android:layout_gravity="top|start"
|
|
android:layout_margin="5dp"
|
|
android:visibility="gone"
|
|
android:layout_marginStart="35dp"
|
|
android:src="@drawable/takeaway2" /> <!-- Adjusted margin to avoid overlap -->
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/itemName"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:text="Peri Peri Tandoori Extra Spicy Long Item Name"
|
|
android:textColor="#000000"
|
|
android:textSize="25dp"
|
|
android:ellipsize="marquee"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:singleLine="true"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:scrollHorizontally="true"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/umpname"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/black"
|
|
android:text="(2 PCS)"
|
|
android:textSize="20dp"/>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/itemPrice"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="₹230.00"
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:textColor="#000000"
|
|
android:textSize="25dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="4"
|
|
android:gravity="center_vertical">
|
|
|
|
<Button
|
|
android:id="@+id/decreaseQuantity"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:background="@drawable/button_box_border"
|
|
android:text="-"
|
|
android:textColor="@color/black"
|
|
android:textSize="25dp"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:layout_centerInParent="true" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/quantityText"
|
|
android:layout_width="50dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="0"
|
|
android:layout_marginLeft="@dimen/dp_10"
|
|
android:textStyle="bold"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:layout_weight="1"
|
|
android:textColor="#000000"
|
|
android:textSize="20dp" />
|
|
|
|
<Button
|
|
android:id="@+id/increaseQuantity"
|
|
android:layout_width="35dp"
|
|
android:layout_marginLeft="@dimen/dp_10"
|
|
android:layout_height="35dp"
|
|
android:background="@drawable/button_box_border"
|
|
android:text="+"
|
|
android:textColor="@color/black"
|
|
android:textSize="24sp"
|
|
android:gravity="center"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:layout_centerInParent="true"
|
|
/>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/removeItem"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:layout_margin="@dimen/dp_5"
|
|
android:paddingTop="5dp"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ImageView
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:layout_marginLeft="@dimen/dp_10"
|
|
android:src="@drawable/trash_can_delete"
|
|
android:tint="#000000" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |