<?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="match_parent" /> </LinearLayout> </layout>