164 lines
6.4 KiB
XML
164 lines
6.4 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<FrameLayout
|
||
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:id="@+id/frameLayout"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
|
||
|
|
<androidx.cardview.widget.CardView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:id="@+id/cardparent"
|
||
|
|
android:layout_margin="6dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<androidx.cardview.widget.CardView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:id="@+id/cardView"
|
||
|
|
app:cardElevation="5dp"
|
||
|
|
app:cardMaxElevation="5dp">
|
||
|
|
|
||
|
|
<com.google.android.flexbox.FlexboxLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:id="@+id/flexboxLayout"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:layout_margin="10dp"
|
||
|
|
app:background="@drawable/rectangle_683"
|
||
|
|
app:cardBackgroundColor="@color/white"
|
||
|
|
app:cardCornerRadius="5dp"
|
||
|
|
app:cardMaxElevation="5dp"
|
||
|
|
app:cardElevation="@dimen/sp_1">
|
||
|
|
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/imageView"
|
||
|
|
android:layout_width="75dp"
|
||
|
|
android:layout_height="60dp"
|
||
|
|
android:backgroundTint="@color/reserved"
|
||
|
|
android:scaleType="fitXY"
|
||
|
|
android:src="@drawable/burger_new"
|
||
|
|
app:layout_flexBasisPercent="50%"/>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"
|
||
|
|
app:layout_flexBasisPercent="50%">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/itemName"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:layout_gravity="center_vertical"
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:elevation="3dp"
|
||
|
|
android:fontFamily="@font/poppins_medium"
|
||
|
|
android:letterSpacing="0.02"
|
||
|
|
android:text="Item Name"
|
||
|
|
android:textAllCaps="false"
|
||
|
|
android:textColor="#5E5959"
|
||
|
|
android:textSize="14dp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/amtTxt"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center_vertical"
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:elevation="3dp"
|
||
|
|
android:fontFamily="@font/poppins_medium"
|
||
|
|
android:text="₹ 50.0"
|
||
|
|
android:textAllCaps="false"
|
||
|
|
android:textColor="#007E1C"
|
||
|
|
android:textSize="15dp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_marginLeft="@dimen/dp_2"
|
||
|
|
android:id="@+id/noStockText"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:gravity="center"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center_vertical"
|
||
|
|
android:elevation="3dp"
|
||
|
|
android:fontFamily="@font/poppins_medium"
|
||
|
|
android:letterSpacing="0.02"
|
||
|
|
android:text="No Stock"
|
||
|
|
android:textAllCaps="false"
|
||
|
|
android:textColor="#FF0000"
|
||
|
|
android:textSize="15dp"
|
||
|
|
android:textStyle="bold">
|
||
|
|
|
||
|
|
</TextView>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</com.google.android.flexbox.FlexboxLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/onepieceProduct"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="bottom|end"
|
||
|
|
android:gravity="center"
|
||
|
|
android:layout_marginRight="@dimen/dp_10"
|
||
|
|
android:layout_marginBottom="@dimen/dp_10"
|
||
|
|
android:background="@drawable/border_5dpradius"
|
||
|
|
android:elevation="4dp">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/onepiecetext"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:gravity="center"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:text="1 PCS"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:padding="3dp" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</androidx.cardview.widget.CardView>
|
||
|
|
|
||
|
|
|
||
|
|
</androidx.cardview.widget.CardView>
|
||
|
|
|
||
|
|
|
||
|
|
<CheckBox
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/addToFavourites"
|
||
|
|
android:layout_gravity="top|start"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:paddingStart="4dp"
|
||
|
|
android:paddingEnd="4dp"
|
||
|
|
android:paddingTop="1dp"
|
||
|
|
android:elevation="4dp"
|
||
|
|
android:buttonTint="@color/blue"
|
||
|
|
android:layout_height="wrap_content"/>
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/count_txt"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="top|end"
|
||
|
|
android:text="26"
|
||
|
|
android:textColor="#FFFFFF"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:background="@drawable/badge_background"
|
||
|
|
android:paddingStart="4dp"
|
||
|
|
android:paddingEnd="4dp"
|
||
|
|
android:paddingTop="1dp"
|
||
|
|
android:paddingBottom="1dp"
|
||
|
|
android:elevation="4dp"/>
|
||
|
|
|
||
|
|
</FrameLayout>
|