585 lines
30 KiB
XML
585 lines
30 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/newlight_grey"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/white"
|
|
android:orientation="vertical"
|
|
app:cardCornerRadius="10dp">
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_margin="15dp"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="100dp"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginStart="@dimen/dp_3"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:fontFamily="@font/inter_500"
|
|
android:text="Extra Charge"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/black"
|
|
android:textSize="18dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/closeRlt"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
android:gravity="center"
|
|
android:layout_marginRight="3dp"
|
|
android:layout_marginBottom="4dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/closeImg"
|
|
android:layout_width="15dp"
|
|
android:layout_height="15dp"
|
|
android:src="@drawable/close_1"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_marginBottom="100dp"
|
|
android:fillViewport="true"
|
|
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:layout_marginTop="12dp"
|
|
android:background="@drawable/grey_bordernew1"
|
|
android:orientation="horizontal"
|
|
android:padding="7dp">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/overallProduct"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/clicked_report_bg_6dp"
|
|
android:backgroundTint="@color/black"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:padding="7dp"
|
|
android:text="OverAll Orders"
|
|
android:textColor="@color/white"
|
|
android:textSize="14dp"
|
|
android:textStyle="bold" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/individualProduct"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_weight="1"
|
|
android:backgroundTint="@color/slightblack"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:padding="7dp"
|
|
android:text="Individual Orders"
|
|
android:textColor="@color/slightblack"
|
|
android:textSize="14dp"
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/parentProduct"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense.ExposedDropdownMenu"
|
|
android:layout_width="250dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginTop="7dp"
|
|
app:boxStrokeColor="@color/border_update"
|
|
app:boxStrokeWidth="1.5dp"
|
|
app:hintTextColor="@color/border_update">
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/extraproductadd"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:background="@null"
|
|
android:fontFamily="@font/inter_500"
|
|
android:hint=" Product Name *"
|
|
android:inputType="textNoSuggestions"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:textColor="@color/black"
|
|
android:textSize="14dp" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
<HorizontalScrollView
|
|
android:id="@+id/horizontalonly"
|
|
android:layout_width="match_parent"
|
|
android:fillViewport="true"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/horizonalLL"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="@dimen/dp_10"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="1dp"
|
|
android:layout_marginTop="15dp"
|
|
android:paddingVertical="@dimen/dp_10"
|
|
android:background="@drawable/grey_border_blueborder"
|
|
android:backgroundTint="@color/newsalesblue"
|
|
android:orientation="horizontal"
|
|
android:showDividers="middle">
|
|
|
|
<TextView
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="start"
|
|
android:paddingVertical="3dp"
|
|
android:text="ExtraCharge Type"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Qty"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Price"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Tax Amt"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Amt"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Action"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/overallnodata"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="10dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/nodatafound"
|
|
android:visibility="visible">
|
|
</ImageView>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/overallRecyclerview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:nestedScrollingEnabled="false">
|
|
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
|
|
</LinearLayout>
|
|
|
|
</HorizontalScrollView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:background="@color/white"
|
|
android:gravity="end"
|
|
android:layout_height="wrap_content">
|
|
|
|
<Button
|
|
android:id="@+id/saveextradata"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:layout_height="42dp"
|
|
android:background="@drawable/sales_screen_10dp"
|
|
android:backgroundTint="@color/primary_blue"
|
|
android:fontFamily="@font/inter_500"
|
|
android:text="Add"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/white" />
|
|
</LinearLayout>
|
|
|
|
|
|
<HorizontalScrollView
|
|
android:id="@+id/horizontalonlyI"
|
|
android:layout_width="match_parent"
|
|
android:fillViewport="true"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/horizonalLLI"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="@dimen/dp_10"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="1dp"
|
|
android:layout_marginTop="15dp"
|
|
android:paddingVertical="@dimen/dp_10"
|
|
android:background="@drawable/grey_border_blueborder"
|
|
android:backgroundTint="@color/newsalesblue"
|
|
android:orientation="horizontal"
|
|
android:showDividers="middle">
|
|
|
|
<TextView
|
|
android:layout_width="130dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="start"
|
|
android:paddingVertical="3dp"
|
|
android:text="Product Name"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
android:layout_width="@dimen/sp_150"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="start"
|
|
android:paddingVertical="3dp"
|
|
android:text="ExtraCharge Type"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Qty"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Price"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Tax Amt"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Amt"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
android:fontFamily="@font/inter_600"
|
|
android:gravity="center"
|
|
android:paddingVertical="3dp"
|
|
android:text="Action"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/individualnodata"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="10dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/nodatafound"
|
|
android:visibility="visible">
|
|
</ImageView>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/individualRecyclerview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:nestedScrollingEnabled="false">
|
|
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
|
|
</LinearLayout>
|
|
|
|
</HorizontalScrollView>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:background="@color/white"
|
|
android:gravity="end"
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/overalltextLay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="start"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<TextView
|
|
android:layout_width="110dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Total Amount : "
|
|
android:textStyle="bold"
|
|
android:fontFamily="@font/inter_500"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/dp_15"/>
|
|
|
|
<TextView
|
|
android:id="@+id/overallText"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="0"
|
|
android:textStyle="bold"
|
|
android:gravity="end"
|
|
android:fontFamily="@font/inter_500"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/dp_15"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="start"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<TextView
|
|
android:layout_width="110dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Total Items : "
|
|
android:textStyle="bold"
|
|
android:fontFamily="@font/inter_500"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/dp_15"/>
|
|
|
|
<TextView
|
|
android:id="@+id/overallQty"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="0"
|
|
android:textStyle="bold"
|
|
android:gravity="end"
|
|
android:fontFamily="@font/inter_500"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/dp_15"/>
|
|
</LinearLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="@dimen/dp_10"
|
|
android:paddingHorizontal="15dp">
|
|
|
|
|
|
<Button
|
|
android:id="@+id/cancelbtn"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="25dp"
|
|
android:background="@drawable/sales_screen_10dp"
|
|
android:backgroundTint="@color/black"
|
|
android:fontFamily="@font/inter_500"
|
|
android:text="Cancel"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/white"
|
|
android:gravity="center"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
<Button
|
|
android:id="@+id/postextracharge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="35dp"
|
|
android:background="@drawable/sales_screen_10dp"
|
|
android:backgroundTint="@color/primary_blue"
|
|
android:fontFamily="@font/inter_500"
|
|
android:text="Submit"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/white"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |