1050 lines
48 KiB
XML
1050 lines
48 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<androidx.cardview.widget.CardView
|
||
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:layout_width="500dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
app:cardCornerRadius="7dp"
|
||
|
|
app:cardUseCompatPadding="true">
|
||
|
|
|
||
|
|
<RelativeLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/summaryHeader"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/bothdineintakeaway"
|
||
|
|
android:layout_width="25dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:background="@color/white"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="60dp"
|
||
|
|
android:weightSum="17.7"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="1.7"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:id="@+id/summarySlNo"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
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="14sp" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="5"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_marginLeft="@dimen/dp_5"
|
||
|
|
android:gravity="start">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_marginLeft="@dimen/dp_10"
|
||
|
|
android:id="@+id/summaryItem"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text=" Item"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:fontFamily="@font/gilorylight"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:textSize="14sp" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="1.5"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/summaryMrp"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="MRP"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:fontFamily="@font/gilorylight"
|
||
|
|
android:textAlignment="center"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:textSize="14sp" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/summmaryDiscount"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="%"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:fontFamily="@font/gilorylight"
|
||
|
|
android:textAlignment="center"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:textSize="17sp" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/summaryQuantity_liner"
|
||
|
|
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="wrap_content"
|
||
|
|
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:layout_width="0dp"
|
||
|
|
android:layout_weight="2"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/summaryRate"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
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:layout_width="0dp"
|
||
|
|
android:layout_weight="2.5"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/summaryPrice"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
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:id="@+id/clearAll"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="1.5"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
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>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/summaryDelete"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:drawableTint="@color/white"
|
||
|
|
android:background="@drawable/supplier_border"
|
||
|
|
android:drawableRight="@drawable/baseline_restore_from_trash_24"
|
||
|
|
android:fontFamily="@font/gilorylight"
|
||
|
|
android:textAlignment="center"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:text="Clear All"/>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<androidx.core.widget.NestedScrollView
|
||
|
|
android:id="@+id/notothrrecycler"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_marginBottom="230dp"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/imgtakeawayreorder"
|
||
|
|
android:layout_width="25dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:src="@drawable/takewaysummary"
|
||
|
|
android:background="@color/summarytakeaway"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/takeawayreorder"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:nestedScrollingEnabled="false"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
</androidx.recyclerview.widget.RecyclerView>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/imgdineinreorder"
|
||
|
|
android:layout_width="25dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:src="@drawable/dineinsummary"
|
||
|
|
android:background="@color/summarydineIn"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/summaryreprintrecycler"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:nestedScrollingEnabled="false"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
</androidx.recyclerview.widget.RecyclerView>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/takeawayimage"
|
||
|
|
android:layout_width="25dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:src="@drawable/takewaysummary"
|
||
|
|
android:background="@color/summarytakeaway"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/summary3_recyler"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:nestedScrollingEnabled="false"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
</androidx.recyclerview.widget.RecyclerView>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/dineinsummary"
|
||
|
|
android:layout_width="25dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:src="@drawable/dineinsummary"
|
||
|
|
android:background="@color/summarydineIn"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/summary_recylernew"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:nestedScrollingEnabled="false"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
</androidx.recyclerview.widget.RecyclerView>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</androidx.core.widget.NestedScrollView>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/othersrecyclerviewparent"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/othersrecycler"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:nestedScrollingEnabled="false"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
</androidx.recyclerview.widget.RecyclerView>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:visibility="gone"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_marginHorizontal="@dimen/dp_3"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:background="@drawable/summary_323"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/summary"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
android:gravity="center"
|
||
|
|
android:text="S U M M A R Y"
|
||
|
|
android:textAlignment="center" />
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="10dp"
|
||
|
|
android:layout_marginLeft="30dp"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
android:layout_marginRight="30dp"
|
||
|
|
android:background="@drawable/vector_111" />
|
||
|
|
|
||
|
|
|
||
|
|
<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="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>
|
||
|
|
|
||
|
|
<View
|
||
|
|
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="10dp"
|
||
|
|
android:layout_marginLeft="30dp"
|
||
|
|
android:layout_marginTop="@dimen/dp_8"
|
||
|
|
android:layout_marginRight="30dp"
|
||
|
|
android:background="@drawable/vector_111" />
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/bottom_sheet"
|
||
|
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:background="@color/white"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:padding="16dp"
|
||
|
|
android:layout_alignParentBottom="true" >
|
||
|
|
<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:visibility="gone"
|
||
|
|
android:textAlignment="center"
|
||
|
|
android:textColor="@color/red"
|
||
|
|
android:textSize="5sp" />
|
||
|
|
|
||
|
|
|
||
|
|
<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:id="@+id/nootherservicesum"
|
||
|
|
android:visibility="visible"
|
||
|
|
android:layout_marginTop="@dimen/dp_8"
|
||
|
|
android:layout_marginLeft="@dimen/dp_15"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/advanceAmountLL"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
>
|
||
|
|
|
||
|
|
<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="@color/advancegrey" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/creditCustomers"
|
||
|
|
android:layout_marginLeft="15dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:backgroundTint="@color/layoutBlueTheme"
|
||
|
|
android:background="@drawable/icon_credit_customer">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_marginRight="@dimen/dp_15"
|
||
|
|
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="visible" />
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/dineInHold"
|
||
|
|
android:tooltipText="Dine In Order"
|
||
|
|
android:layout_width="25dp"
|
||
|
|
android:layout_height="25dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:src="@drawable/dinein"
|
||
|
|
app:tint="@color/red">
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:id="@+id/holdRecallParentSummary">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/btnhold_Cmn"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:src="@drawable/hand"
|
||
|
|
app:tint="@color/layoutBlueTheme">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<RelativeLayout
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/holdOrder"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/favItemCart"
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_centerVertical="true"
|
||
|
|
android:layout_centerHorizontal="true"
|
||
|
|
android:src="@drawable/hand"
|
||
|
|
app:tint="@color/selectedGreen" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/cart_badge"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_alignTop="@id/favItemCart"
|
||
|
|
android:layout_alignEnd="@id/favItemCart"
|
||
|
|
android:layout_marginStart="-8dp"
|
||
|
|
android:layout_marginTop="0dp"
|
||
|
|
android:layout_marginEnd="1dp"
|
||
|
|
android:background="@drawable/badge_background"
|
||
|
|
android:gravity="center"
|
||
|
|
android:paddingStart="4dp"
|
||
|
|
android:paddingEnd="4dp"
|
||
|
|
android:text="0"
|
||
|
|
android:textColor="@color/color_white" />
|
||
|
|
|
||
|
|
</RelativeLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/split_payment"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_width="27dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:clickable="false"
|
||
|
|
android:focusable="false"
|
||
|
|
android:src="@drawable/split_payment"
|
||
|
|
/>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/veiclenoparent"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
<ImageView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:background="@drawable/veicle_no_icon"
|
||
|
|
android:backgroundTint="@color/layoutBlueTheme">
|
||
|
|
</ImageView>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
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: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
|
||
|
|
android:id="@+id/adcust_Cmn"
|
||
|
|
android:layout_width="35dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
app:tint="@color/layoutBlueTheme"
|
||
|
|
android:layout_marginLeft="5dp"
|
||
|
|
android:src="@drawable/addcustomer"
|
||
|
|
android:visibility="visible" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:visibility="visible"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/paymentRecylerView"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="60dp">
|
||
|
|
</androidx.recyclerview.widget.RecyclerView>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<TextView
|
||
|
|
android:visibility="gone"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:id="@+id/noPaymentView"
|
||
|
|
android:text="Please Set Payment Options"
|
||
|
|
android:textColor="@color/red"
|
||
|
|
android:padding="16dp"
|
||
|
|
android:gravity="center"
|
||
|
|
/>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/vector_103"
|
||
|
|
android:layout_width="1.5dp"
|
||
|
|
|
||
|
|
android:layout_height="140dp"
|
||
|
|
android:backgroundTint="@color/black"
|
||
|
|
android:background="@drawable/nav_border2"/>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="0.8"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_gravity="end"
|
||
|
|
android:id="@+id/viewSummary"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/viewSummaryImage"
|
||
|
|
android:layout_width="35dp"
|
||
|
|
android:layout_height="35dp"
|
||
|
|
android:src="@drawable/icon_up_arrow"
|
||
|
|
app:tint="@color/layoutBlueTheme">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:weightSum="2">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_weight="1.7"
|
||
|
|
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="0"
|
||
|
|
android:textSize="14sp"
|
||
|
|
|
||
|
|
/>
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_marginTop="5dp"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:weightSum="5">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
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="@color/usbSelected"
|
||
|
|
android:background="@drawable/btn_pay">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/submit_btn"
|
||
|
|
android:visibility="visible"
|
||
|
|
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="\u20b90"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
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/white">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/dinInorderbtn"
|
||
|
|
android:visibility="gone"
|
||
|
|
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:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="3"
|
||
|
|
android:text="ORDER"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:textStyle="bold">
|
||
|
|
|
||
|
|
</TextView>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</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>
|
||
|
|
|
||
|
|
</RelativeLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</androidx.cardview.widget.CardView>
|
||
|
|
|