1520 lines
57 KiB
XML
1520 lines
57 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="420dp"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_margin="5dp"
|
|
app:cardCornerRadius="10dp"
|
|
app:cardUseCompatPadding="true"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_marginHorizontal="6dp"
|
|
android:layout_marginTop="6dp"
|
|
android:id="@+id/summaryHeader"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center">
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/slno"
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1.7"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
|
|
<TextView
|
|
android:layout_marginStart="5dp"
|
|
android:id="@+id/summarySlNo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:text="Sl.No"
|
|
android:textStyle="bold"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:visibility="visible"
|
|
android:id="@+id/itemname"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="5"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/summaryItem"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text=" Item Name"
|
|
android:textStyle="bold"
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/mrp"
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1.5"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/summaryMrp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="MRP"
|
|
android:textStyle="bold"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/discount"
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/summmaryDiscount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="%"
|
|
android:textStyle="bold"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="16sp" />
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/qty"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2.5"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/summaryQuantity"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:text="Qty"
|
|
android:textStyle="bold"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/rate"
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/summaryRate"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:text="Rt"
|
|
android:textStyle="bold"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/amt"
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2.5"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/summaryPrice"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Amt"
|
|
android:textStyle="bold"
|
|
android:textSize="14sp"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
|
|
android:id="@+id/editbtn"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1.5"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:layout_gravity="center">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/edit"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_marginRight="@dimen/dp_10"
|
|
android:src="@drawable/edit_icon"
|
|
app:tint="@color/black"
|
|
>
|
|
|
|
</ImageView>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
|
|
android:id="@+id/clearAll"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1.5"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:layout_gravity="center">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/summaryDeleteIcon"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_marginRight="@dimen/dp_10"
|
|
android:src="@drawable/trash_can_delete"
|
|
app:tint="@color/black"
|
|
>
|
|
|
|
</ImageView>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
|
|
android:layout_marginHorizontal="6dp"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1.7"
|
|
android:id="@+id/sl_No2"
|
|
android:visibility="gone"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
|
|
<TextView
|
|
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="1"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="5"
|
|
android:id="@+id/itemname2"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/first"
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:layout_marginLeft="@dimen/dp_5"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="Milky Bar"
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1.5"
|
|
android:id="@+id/mrp2"
|
|
android:visibility="gone"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:layout_gravity="center"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="20"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp"
|
|
android:gravity="center"
|
|
/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:visibility="gone"
|
|
android:id="@+id/discount2"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="-"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp"/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:visibility="gone"
|
|
android:id="@+id/qty2"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2.5">
|
|
|
|
<ImageView
|
|
android:id="@+id/decreaseQuantity"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/minus1"/>
|
|
|
|
<TextView
|
|
android:id="@+id/quantity"
|
|
android:layout_width="0dp"
|
|
android:layout_height="25dp"
|
|
android:layout_weight="2.5"
|
|
android:text="2"
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:layout_gravity="center"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="14sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/increaseQuantity"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/plus_summary_2"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2"
|
|
android:id="@+id/rate2"
|
|
android:visibility="gone"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="-"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2.5"
|
|
android:id="@+id/amt2"
|
|
android:visibility="gone"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:gravity="center"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:text="₹ 40"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1.5"
|
|
android:id="@+id/editprod2"
|
|
android:visibility="gone"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:backgroundTint="@color/selectedGreen"
|
|
android:background="@drawable/edit" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1.5"
|
|
android:visibility="gone"
|
|
android:id="@+id/deleteProd2"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/delete_vec" />
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:layout_marginTop="7dp"
|
|
android:layout_marginHorizontal="6dp"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1.7"
|
|
android:id="@+id/sl_No1"
|
|
android:visibility="gone"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
|
|
<TextView
|
|
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:id="@+id/slNo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="2"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="5"
|
|
android:id="@+id/itemname1"
|
|
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
|
|
<TextView
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:layout_marginLeft="@dimen/dp_5"
|
|
android:id="@+id/second"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="Dairy Milk"
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1.5"
|
|
android:id="@+id/mrp1"
|
|
android:visibility="gone"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:layout_gravity="center"
|
|
android:id="@+id/mrp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="60"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp"
|
|
android:gravity="center"
|
|
/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:visibility="gone"
|
|
android:id="@+id/discount1"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:id="@+id/discount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="-"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp"/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:visibility="gone"
|
|
android:id="@+id/qty1"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2.5">
|
|
|
|
<ImageView
|
|
android:id="@+id/decreaseQuantity"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/minus1"/>
|
|
|
|
<TextView
|
|
android:id="@+id/quantity"
|
|
android:layout_width="0dp"
|
|
android:layout_height="25dp"
|
|
android:layout_weight="2.5"
|
|
android:text="1"
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:layout_gravity="center"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="14sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/increaseQuantity"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/plus_summary_2"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2"
|
|
android:id="@+id/rate1"
|
|
android:visibility="gone"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:id="@+id/rate"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="-"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2.5"
|
|
android:id="@+id/amt1"
|
|
android:visibility="gone"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:gravity="center"
|
|
android:id="@+id/price"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/popins_semibold"
|
|
android:text="₹60"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1.5"
|
|
android:id="@+id/editprod"
|
|
android:visibility="gone"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<ImageView
|
|
android:id="@+id/edit2"
|
|
android:layout_gravity="center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:backgroundTint="@color/selectedGreen"
|
|
android:background="@drawable/edit" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1.5"
|
|
android:visibility="gone"
|
|
android:id="@+id/deleteProd"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<ImageView
|
|
android:id="@+id/delete"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/delete_vec" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/llView"
|
|
android:layout_gravity="bottom"
|
|
android:gravity="bottom"
|
|
android:layout_marginBottom="150dp"
|
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_marginBottom="120dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:visibility="invisible"
|
|
android:id="@+id/parentBilling5"
|
|
android:layout_width="match_parent"
|
|
android:background="@drawable/summary_323"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="10dp"
|
|
android:layout_marginTop="@dimen/dp_3"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="4dp"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.75"
|
|
android:text="TOTAL ITEMS"
|
|
android:textAlignment="center"
|
|
android:textSize="13sp" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.25"
|
|
android:gravity="end"
|
|
android:text="0"
|
|
android:textSize="14sp"
|
|
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="4dp"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.75"
|
|
android:text="TOTAL QUANTITY"
|
|
android:textAlignment="center"
|
|
android:textSize="13sp" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.25"
|
|
android:gravity="end"
|
|
android:text="0"
|
|
android:textSize="14sp"
|
|
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="4dp"
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.75"
|
|
android:text="DISCOUNT"
|
|
android:textAlignment="center"
|
|
android:textSize="13sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/discount"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.25"
|
|
android:gravity="end"
|
|
android:text="0"
|
|
android:textSize="14sp"
|
|
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="4dp"
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.75"
|
|
android:text="BILL AMOUNT"
|
|
android:textAlignment="center"
|
|
android:textSize="13sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/billAmount"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.25"
|
|
android:gravity="end"
|
|
android:text="0"
|
|
android:textSize="14sp"
|
|
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="4dp"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.75"
|
|
android:text="TAX AMOUNT"
|
|
android:textAlignment="center"
|
|
android:textSize="13sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/taxAmount"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.25"
|
|
android:gravity="end"
|
|
android:text="0"
|
|
android:textSize="14sp"
|
|
|
|
/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.75"
|
|
android:text="TOTAL"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/grandTotal"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.25"
|
|
android:gravity="center"
|
|
android:text="0"
|
|
android:textAlignment="center"
|
|
android:textColor="#FF2929"
|
|
android:textSize="20sp"
|
|
|
|
/>
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="bottom"
|
|
android:gravity="bottom"
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dp_10">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="2">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.2">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="visible"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_weight="1.3"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="visible"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:layout_width="50dp"
|
|
android:layout_height="30dp"
|
|
android:layout_marginHorizontal="3dp"
|
|
android:background="@color/selectedGreen"
|
|
android:text="Cash"
|
|
android:textColor="@color/white"
|
|
android:textStyle="bold">
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
android:layout_width="50dp"
|
|
android:layout_height="30dp"
|
|
android:textStyle="bold"
|
|
android:background="@color/layoutBlueTheme"
|
|
android:textColor="@color/white"
|
|
android:text="Card">
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
android:layout_width="40dp"
|
|
android:layout_height="30dp"
|
|
android:textStyle="bold"
|
|
android:layout_marginHorizontal="3dp"
|
|
android:background="@color/layoutBlueTheme"
|
|
android:textColor="@color/white"
|
|
android:text="UPi">
|
|
|
|
</Button>
|
|
<Button
|
|
android:id="@+id/advanceAmountLL"
|
|
android:visibility="gone"
|
|
android:layout_width="65dp"
|
|
android:layout_height="30dp"
|
|
android:textStyle="bold"
|
|
android:background="@color/layoutBlueTheme"
|
|
android:textColor="@color/white"
|
|
android:text="Credit">
|
|
|
|
</Button>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:visibility="visible"
|
|
android:id="@+id/addCustomerParent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="3dp"
|
|
android:orientation="horizontal"
|
|
android:weightSum="3">
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/Billingselectcustomer"
|
|
android:layout_marginStart="3dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:layout_marginTop="10sp"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone"
|
|
android:layout_margin="@dimen/dp_5">
|
|
|
|
|
|
|
|
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/selectCutomerSpinner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="@android:drawable/editbox_background_normal"
|
|
android:drawableEnd="@drawable/dropdown"
|
|
android:cursorVisible="true"
|
|
android:gravity="center_vertical"
|
|
android:padding="8dp"
|
|
android:focusable="false"
|
|
android:clickable="false"
|
|
android:inputType="text"
|
|
android:visibility="visible"
|
|
app:ms_dropdown_height="wrap_content"
|
|
app:ms_dropdown_max_height="350sp"
|
|
android:hint="Select Customer"
|
|
android:textSize="16dp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:id="@+id/Billingaddcustomer"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
app:tint="@color/layoutBlueTheme"
|
|
android:id="@+id/adcust_Cmn"
|
|
android:layout_width="35dp"
|
|
android:layout_height="30dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="5dp"
|
|
android:src="@drawable/addcustomer"
|
|
android:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_marginStart="3dp"
|
|
android:layout_width="wrap_content"
|
|
android:visibility="gone"
|
|
android:id="@+id/navbar2custlist"
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/testView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:drawable/editbox_background"
|
|
android:drawableEnd="@drawable/dropdown"
|
|
android:gravity="center_vertical"
|
|
android:hint="Customer Name "
|
|
android:padding="5dp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:layout_marginLeft="@dimen/dp_10"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="40dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_height="40dp"
|
|
android:visibility="gone"
|
|
>
|
|
|
|
<ImageView
|
|
android:focusable="false"
|
|
android:clickable="false"
|
|
android:id="@+id/advanceAmountIV"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/advance_amount_icon"
|
|
app:tint="#808080" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:visibility="gone"
|
|
android:id="@+id/creditCustomers"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="30dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="10dp"
|
|
android:background="@drawable/icon_credit_customer"
|
|
android:backgroundTint="@color/layoutBlueTheme">
|
|
|
|
</ImageView>
|
|
|
|
<ImageView
|
|
android:layout_marginRight="@dimen/dp_10"
|
|
android:id="@+id/unpaid"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="15dp"
|
|
android:backgroundTint="@color/layoutBlueTheme"
|
|
android:background="@drawable/icon_un_paid_bill"
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
android:layout_marginLeft="10dp"
|
|
android:visibility="gone"
|
|
android:id="@+id/dineInHold"
|
|
android:tooltipText="Dine In Order"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/dinein"
|
|
app:tint="@color/selectedGreen"
|
|
>
|
|
</ImageView>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/holdRecallParentSummary">
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/btnhold_Cmn"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:padding="10dp"
|
|
android:layout_marginStart="@dimen/dp_5"
|
|
android:layout_marginLeft="@dimen/sp_5"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:layout_marginEnd="@dimen/dp_5"
|
|
android:layout_marginBottom="@dimen/dp_5"
|
|
android:background="@drawable/search_bg_white"
|
|
android:gravity="center"
|
|
android:text="Hold 🖐️"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/sp_16"
|
|
android:textStyle="bold"
|
|
android:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/holdOrder"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="1"
|
|
android:clipToPadding="false"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:id="@+id/recallItem"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_marginStart="@dimen/dp_5"
|
|
android:layout_marginLeft="@dimen/sp_5"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:layout_marginEnd="@dimen/dp_5"
|
|
android:layout_marginBottom="@dimen/dp_5"
|
|
android:background="@drawable/search_bg_white"
|
|
android:backgroundTint="#f6caca"
|
|
android:gravity="center"
|
|
android:text="Recall"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/sp_16"
|
|
android:textStyle="bold"
|
|
android:visibility="visible" />
|
|
|
|
<TextView
|
|
android:id="@+id/cart_badge"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_marginTop="3dp"
|
|
android:layout_alignParentRight="true"
|
|
android:background="@drawable/badge_background"
|
|
android:gravity="center"
|
|
android:padding="3dp"
|
|
android:text="0"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="10sp" />
|
|
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="1dp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="2">
|
|
|
|
<LinearLayout
|
|
android:layout_weight="1.5"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/sp_4"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:fontFamily="@font/gilorymedium"
|
|
android:text="Items"
|
|
android:textAlignment="textStart"
|
|
android:textSize="13sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/totalItems"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:fontFamily="@font/gilorymedium"
|
|
android:gravity="end"
|
|
android:text="0"
|
|
android:textSize="14sp"
|
|
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="8dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/sp_4"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:fontFamily="@font/gilorymedium"
|
|
android:text="Qty"
|
|
android:textAlignment="textStart"
|
|
android:textSize="13sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/totalQuantity"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:fontFamily="@font/gilorymedium"
|
|
android:gravity="end"
|
|
android:text="2"
|
|
android:textSize="14sp"
|
|
|
|
/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.5"
|
|
android:id="@+id/viewSummary"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/viewSummaryImage"
|
|
android:layout_width="40dp"
|
|
android:layout_height="35dp"
|
|
android:src="@drawable/icon_up_arrow"
|
|
app:tint="@color/layoutBlueTheme">
|
|
|
|
</ImageView>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="30dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="5">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:layout_weight="5">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_50"
|
|
android:layout_margin="8dp"
|
|
android:layout_weight="2"
|
|
android:backgroundTint="#52C41A"
|
|
android:background="@drawable/btn_pay">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/submit_btn"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:weightSum="3">
|
|
|
|
<TextView
|
|
android:textAlignment="center"
|
|
android:id="@+id/submitTotal"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="3"
|
|
android:text="\u20b9 100"
|
|
android:textColor="@color/black"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold">
|
|
|
|
</TextView>
|
|
|
|
<ImageView
|
|
android:visibility="visible"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="5dp"
|
|
android:src="@drawable/vector_pay"
|
|
app:tint="@color/black">
|
|
|
|
</ImageView>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView> |