<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <data>

        <variable
            name="presenter"
            type="com.dayu.base.ui.presenter.BaseListPresenter" />
    </data>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#f5f5f5"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:orientation="vertical">

        <RelativeLayout
            android:id="@+id/rl_seacher"
            android:layout_width="match_parent"
            android:layout_height="45dp"
            android:layout_marginLeft="13dp"
            android:layout_marginRight="13dp"
            android:background="@color/cl_white">

            <EditText
                android:id="@+id/edt_seacher"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_centerVertical="true"
                android:layout_marginLeft="10dp"
                android:layout_marginRight="10dp"
                android:layout_marginBottom="5dp"
                android:layout_toLeftOf="@+id/tv_cancel"
                android:background="@null"
                android:gravity="center"
                android:hint="@string/input_sale_product"
                android:imeOptions="actionSearch"
                android:inputType="text"
                android:singleLine="true"
                android:textSize="15sp" />


            <TextView
                android:id="@+id/tv_cancel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="20dp"
                android:gravity="center"
                android:text="@string/cancle"
                android:textColor="@color/cl_black"
                android:textSize="16sp"
                android:textStyle="bold"
                android:visibility="gone" />

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="5dp"
                android:layout_alignParentBottom="true"
                android:src="@drawable/line_shape" />
        </RelativeLayout>


        <com.dayu.widgets.LRecyclerView
            android:id="@+id/recyclerView"
            setPresenter="@{presenter}"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"/>

        <LinearLayout
            android:id="@+id/ll_bussiness"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/cl_bg"
            android:orientation="vertical"
            android:visibility="gone">

            <com.dayu.widgets.AutoPollRecyclerView
                android:id="@+id/rv_reward"
                android:layout_width="match_parent"
                android:layout_height="@dimen/dp_45" />

            <LinearLayout
                android:id="@+id/ll_bfcom"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/dp_3"
                android:layout_marginBottom="@dimen/dp_6"
                android:layout_marginLeft="@dimen/dp_50"
                android:layout_marginRight="@dimen/dp_50"
                android:orientation="horizontal"
                android:gravity="center"
                android:background="@drawable/btn_blue_commom">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="贡献商机拿奖金"
                    android:textSize="@dimen/dp_16"
                    android:textColor="@color/cl_white" />

                <ImageView
                    android:id="@+id/iv_bfcom"
                    android:layout_width="@dimen/dp_45"
                    android:layout_height="@dimen/dp_45"
                    android:layout_marginLeft="@dimen/dp_6"
                    android:padding="2dp"
                    android:background="@drawable/bfcom_anim"
                    android:layout_gravity="center_horizontal"/>

            </LinearLayout>

        </LinearLayout>
    </LinearLayout>

</layout>