266 lines
12 KiB
XML
266 lines
12 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:id="@+id/main"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_margin="@dimen/_20dp"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:weightSum="1">
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/closeBT"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="0.2"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
<ImageView
|
||
|
|
android:tint="@color/black"
|
||
|
|
android:layout_width="25dp"
|
||
|
|
android:layout_height="25dp"
|
||
|
|
android:src="@drawable/sales_screen_back_icon">
|
||
|
|
</ImageView>
|
||
|
|
</LinearLayout>
|
||
|
|
<TextView
|
||
|
|
android:layout_weight="0.8"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Coupon Wise Offer"
|
||
|
|
android:textSize="17dp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textColor="@color/primary_dark_blue"
|
||
|
|
android:fontFamily="@font/inter_500"/>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:layout_marginTop="@dimen/dp_10">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_marginRight="@dimen/dp_8"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
<com.google.android.material.textfield.TextInputLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:id="@+id/searchcoupon"
|
||
|
|
app:boxStrokeColor="@color/primary_blue"
|
||
|
|
app:hintTextColor="@color/primary_blue"
|
||
|
|
android:hint="Search coupon Name..."
|
||
|
|
app:boxBackgroundColor="@color/white"
|
||
|
|
android:textColorHint="#979797"
|
||
|
|
app:boxCornerRadiusTopStart="@dimen/dp_6"
|
||
|
|
app:boxStrokeWidth="1dp"
|
||
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputEditText
|
||
|
|
android:id="@+id/Search"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="45dp"
|
||
|
|
android:minHeight="45dp"
|
||
|
|
android:paddingTop="8dp"
|
||
|
|
android:paddingBottom="8dp"
|
||
|
|
android:gravity="center_vertical"
|
||
|
|
android:fontFamily="@font/inter_500"
|
||
|
|
android:textSize="13dp"
|
||
|
|
android:maxLines="1"
|
||
|
|
android:inputType="textNoSuggestions"
|
||
|
|
android:textColorHint="@color/black"/>
|
||
|
|
</com.google.android.material.textfield.TextInputLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/createnew"
|
||
|
|
android:gravity="center"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="0.5"
|
||
|
|
android:layout_marginTop="2.2dp"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
<LinearLayout
|
||
|
|
android:gravity="start"
|
||
|
|
android:id="@+id/addNew"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="45dp"
|
||
|
|
android:background="@drawable/sales_screen_bg_button"
|
||
|
|
android:visibility="visible">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:fontFamily="@font/inter_500"
|
||
|
|
android:maxLines="1"
|
||
|
|
android:text="Create New "
|
||
|
|
android:textAlignment="center"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:textSize="16sp"/>
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<HorizontalScrollView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="@dimen/dp_10"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:background="@drawable/grey_border_blueborder"
|
||
|
|
android:divider="@drawable/custom_divider"
|
||
|
|
android:showDividers="middle">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Sl"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="2"
|
||
|
|
android:text="Offer Name"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="2"
|
||
|
|
android:text="Min Qty"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="2"
|
||
|
|
android:text="Min Purchase"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="2"
|
||
|
|
android:text="Reward Type"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="2"
|
||
|
|
android:text="Reward Value"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="2"
|
||
|
|
android:text="Generate Coupon"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1.5"
|
||
|
|
android:text="From"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="To"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="2"
|
||
|
|
android:text="Action"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/black">
|
||
|
|
</TextView>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/couponrecycler"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
</androidx.recyclerview.widget.RecyclerView>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
</HorizontalScrollView>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|