710 lines
42 KiB
XML
710 lines
42 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: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="match_parent"
|
|
android:layout_margin="@dimen/_20dp"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="40dp"
|
|
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>
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
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="@dimen/dp_10"
|
|
android:orientation="vertical">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/CustomAutoCompleteTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:hintTextColor="@color/primary_blue"
|
|
app:boxBackgroundColor="@color/white">
|
|
<AutoCompleteTextView
|
|
android:id="@+id/offernamespinner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textNoSuggestions"
|
|
android:hint="Offer Name"
|
|
android:fontFamily="@font/inter_500"
|
|
android:paddingVertical="15dp">
|
|
</AutoCompleteTextView>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:padding="@dimen/dp_5"
|
|
android:layout_gravity="center">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Rules"
|
|
android:fontFamily="@font/inter_600"
|
|
android:layout_gravity="center"
|
|
android:gravity="start">
|
|
</TextView>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginRight="@dimen/dp_10"
|
|
android:gravity="end">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/icon_down_arrow">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="-10dp"
|
|
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"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:weightSum="2">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:hint="Minimum Quantity"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:boxStrokeWidth="1dp"
|
|
android:layout_marginRight="@dimen/dp_10"
|
|
app:hintTextColor="@color/primary_blue">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/minumumqty"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/inter_600"
|
|
android:maxLines="1"
|
|
android:textSize="@dimen/dp_14"
|
|
android:inputType="number"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@color/black" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:hintTextColor="@color/primary_blue"
|
|
app:boxStrokeWidth="1dp"
|
|
android:hint="Min purchase">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/minpurchase"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/inter_500"
|
|
android:gravity="center_vertical"
|
|
android:textSize="14dp"
|
|
android:maxLines="1"
|
|
android:inputType="number"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@color/black"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="5dp"
|
|
android:weightSum="2">
|
|
<LinearLayout
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:hintTextColor="@color/primary_blue"
|
|
app:boxStrokeWidth="1dp"
|
|
android:hint="Loyalty Points">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/loyaltypoint"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/inter_500"
|
|
android:gravity="center_vertical"
|
|
android:textSize="14dp"
|
|
android:maxLines="1"
|
|
android:inputType="number"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@color/black"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/CustomAutoCompleteTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:hintTextColor="@color/primary_blue"
|
|
android:hint="Category"
|
|
app:boxBackgroundColor="@color/white">
|
|
<AutoCompleteTextView
|
|
android:id="@+id/categorywisespinner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textNoSuggestions"
|
|
android:fontFamily="@font/inter_500">
|
|
</AutoCompleteTextView>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:text="Selected Categories"
|
|
android:layout_width="wrap_content"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_height="wrap_content">
|
|
</TextView>
|
|
|
|
<LinearLayout
|
|
android:background="@drawable/border_radius"
|
|
android:layout_width="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:layout_height="80dp">
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/amongcategoryrecycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:orientation="vertical">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/CustomAutoCompleteTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:hintTextColor="@color/primary_blue"
|
|
android:backgroundTint="@color/white"
|
|
android:background="@color/white"
|
|
android:hint="Product"
|
|
app:boxBackgroundColor="@color/white">
|
|
<AutoCompleteTextView
|
|
android:id="@+id/productsDataspinner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textNoSuggestions"
|
|
android:fontFamily="@font/inter_500">
|
|
</AutoCompleteTextView>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:layout_marginBottom="@dimen/_20dp"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:text="Selected Product"
|
|
android:layout_width="wrap_content"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_height="wrap_content">
|
|
</TextView>
|
|
|
|
<LinearLayout
|
|
android:background="@drawable/border_radius"
|
|
android:layout_width="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:layout_height="80dp">
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/addrulesproductrecycle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:id="@+id/rewardfunction">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:padding="@dimen/dp_5"
|
|
android:layout_gravity="center">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Rewards"
|
|
android:fontFamily="@font/inter_600"
|
|
android:layout_gravity="center"
|
|
android:gravity="start">
|
|
</TextView>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginRight="@dimen/dp_10"
|
|
android:gravity="end">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/icon_down_arrow">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<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">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/CustomAutoCompleteTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:hintTextColor="@color/primary_blue"
|
|
android:background="@color/white"
|
|
app:boxBackgroundColor="@color/white">
|
|
<AutoCompleteTextView
|
|
android:id="@+id/rewardtype"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textNoSuggestions"
|
|
android:hint="Reward Type"
|
|
android:fontFamily="@font/inter_500"
|
|
android:paddingVertical="15dp">
|
|
</AutoCompleteTextView>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/appliesto"
|
|
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"
|
|
android:background="@drawable/border_radius"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:padding="@dimen/dp_5"
|
|
android:layout_gravity="center">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Applies To"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="@dimen/dp_5"
|
|
android:textColor="@color/black">
|
|
</TextView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/border_radius"
|
|
android:layout_gravity="center"
|
|
android:backgroundTint="@color/gray_7d"
|
|
android:weightSum="2"
|
|
android:padding="@dimen/dp_5"
|
|
android:layout_marginStart="@dimen/dp_10">
|
|
<TextView
|
|
android:id="@+id/orderbtn"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="order"
|
|
android:textColor="@color/black"
|
|
android:gravity="center"
|
|
android:padding="@dimen/dp_3"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/coupon_reward_border">
|
|
|
|
</TextView>
|
|
<TextView
|
|
android:id="@+id/specipicprodbtn"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="Specific Products"
|
|
android:textColor="@color/black"
|
|
android:gravity="center"
|
|
android:padding="@dimen/dp_3"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/coupon_reward_border">
|
|
|
|
</TextView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/specialproducts"
|
|
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="@dimen/dp_5"
|
|
android:orientation="vertical">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/CustomAutoCompleteTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:hintTextColor="@color/primary_blue"
|
|
android:backgroundTint="@color/white"
|
|
android:background="@color/white"
|
|
android:hint="Specific Product"
|
|
app:boxBackgroundColor="@color/white">
|
|
<AutoCompleteTextView
|
|
android:id="@+id/rewardspecialprod"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textNoSuggestions"
|
|
android:textSize="@dimen/dp_14"
|
|
android:fontFamily="@font/inter_500">
|
|
</AutoCompleteTextView>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:text="Selected Product"
|
|
android:layout_width="wrap_content"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_height="wrap_content">
|
|
</TextView>
|
|
|
|
<LinearLayout
|
|
android:background="@drawable/border_radius"
|
|
android:layout_width="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:layout_height="50dp">
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rewardspecilprodrecycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:orientation="vertical">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/CustomAutoCompleteTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:hintTextColor="@color/primary_blue"
|
|
android:backgroundTint="@color/white"
|
|
android:background="@color/white"
|
|
android:hint="Category Product"
|
|
app:boxBackgroundColor="@color/white">
|
|
<AutoCompleteTextView
|
|
android:id="@+id/rewardcategoriesplinner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textNoSuggestions"
|
|
android:textSize="@dimen/dp_14"
|
|
android:fontFamily="@font/inter_500">
|
|
</AutoCompleteTextView>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:text="Selected Categories"
|
|
android:layout_width="wrap_content"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_height="wrap_content">
|
|
</TextView>
|
|
|
|
<LinearLayout
|
|
android:background="@drawable/border_radius"
|
|
android:layout_width="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:layout_height="50dp">
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/freespecialcarrecycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/freeProducts"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="@dimen/dp_10">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:hintTextColor="@color/primary_blue"
|
|
app:boxStrokeWidth="1dp"
|
|
android:hint="Quantity Rewarded">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/rewardscount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/inter_500"
|
|
android:gravity="center_vertical"
|
|
android:textSize="14dp"
|
|
android:maxLines="1"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@color/black"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:orientation="vertical">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/CustomAutoCompleteTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:hintTextColor="@color/primary_blue"
|
|
android:backgroundTint="@color/white"
|
|
android:background="@color/white"
|
|
android:hint="Free Product"
|
|
app:boxBackgroundColor="@color/white">
|
|
<AutoCompleteTextView
|
|
android:id="@+id/rewardfreeproductspinner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textNoSuggestions"
|
|
android:textSize="@dimen/dp_14"
|
|
android:fontFamily="@font/inter_500">
|
|
</AutoCompleteTextView>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:text="Selected Products"
|
|
android:layout_width="wrap_content"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_height="wrap_content">
|
|
</TextView>
|
|
|
|
<LinearLayout
|
|
android:background="@drawable/border_radius"
|
|
android:layout_width="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:layout_height="50dp">
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rewardfreeprodrecycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="5dp"
|
|
android:weightSum="2">
|
|
<LinearLayout
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeColor="@color/primary_blue"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:hintTextColor="@color/primary_blue"
|
|
app:boxStrokeWidth="1dp"
|
|
android:hint="Description">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/description"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/inter_500"
|
|
android:gravity="center_vertical"
|
|
android:textColor="@color/black"
|
|
android:textColorHint="@color/black"
|
|
android:textSize="14dp" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<Button
|
|
android:id="@+id/submitclick"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@drawable/sales_screen_10dp"
|
|
android:backgroundTint="#1B8619"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_marginHorizontal="@dimen/_20dp"
|
|
android:text="Submit"
|
|
android:textAllCaps="false"
|
|
android:layout_marginBottom="5dp"
|
|
android:textColor="@color/white" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |