114 lines
3.2 KiB
XML
114 lines
3.2 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<FrameLayout
|
||
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
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/inter_600"
|
||
|
|
android:letterSpacing="0.02"
|
||
|
|
android:text="Item Name"
|
||
|
|
android:textAllCaps="false"
|
||
|
|
android:textColor="#5E5959"
|
||
|
|
android:singleLine="true"
|
||
|
|
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/inter_600"
|
||
|
|
android:text="₹ 50.0"
|
||
|
|
android:singleLine="true"
|
||
|
|
android:textAllCaps="false"
|
||
|
|
android:textColor="#007E1C"
|
||
|
|
android:textSize="15dp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</com.google.android.flexbox.FlexboxLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</androidx.cardview.widget.CardView>
|
||
|
|
|
||
|
|
|
||
|
|
</androidx.cardview.widget.CardView>
|
||
|
|
|
||
|
|
<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:fontFamily="@font/inter_600"
|
||
|
|
android:background="@drawable/badge_background"
|
||
|
|
android:paddingStart="4dp"
|
||
|
|
android:paddingEnd="4dp"
|
||
|
|
android:paddingTop="1dp"
|
||
|
|
android:paddingBottom="1dp"
|
||
|
|
android:elevation="4dp"/>
|
||
|
|
</FrameLayout>
|