|
@@ -1,9 +1,13 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<layout xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
- xmlns:android="http://schemas.android.com/apk/res/android" >
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto" >
|
|
|
|
|
|
<data >
|
|
|
|
|
|
+ <variable
|
|
|
+ name="vm"
|
|
|
+ type="com.quansu.heifengwuliu.vmodel.SearchVModel" />
|
|
|
+
|
|
|
</data >
|
|
|
|
|
|
<LinearLayout
|
|
@@ -11,7 +15,7 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:focusable="true"
|
|
|
android:focusableInTouchMode="true"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:orientation="vertical" >
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
@@ -21,7 +25,7 @@
|
|
|
android:layout_marginRight="18dp"
|
|
|
android:layout_marginBottom="18dp"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal">
|
|
|
+ android:orientation="horizontal" >
|
|
|
|
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
android:layout_width="0dp"
|
|
@@ -36,16 +40,14 @@
|
|
|
app:qmui_backgroundColor="@color/white"
|
|
|
app:qmui_borderColor="#BEBEBE"
|
|
|
app:qmui_borderWidth="@dimen/dp_1"
|
|
|
- app:qmui_radius="@dimen/dp_4">
|
|
|
-
|
|
|
+ app:qmui_radius="@dimen/dp_4" >
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="13dp"
|
|
|
android:layout_height="13dp"
|
|
|
- android:src="@drawable/stock_serch">
|
|
|
-
|
|
|
- </ImageView>
|
|
|
+ android:src="@drawable/stock_serch" >
|
|
|
|
|
|
+ </ImageView >
|
|
|
|
|
|
<EditText
|
|
|
android:id="@+id/et_name"
|
|
@@ -56,23 +58,22 @@
|
|
|
android:background="@null"
|
|
|
android:gravity="center_vertical"
|
|
|
android:hint="请输入要搜索的内容"
|
|
|
+ android:text="@={vm.k}"
|
|
|
android:textColor="#2F2F31"
|
|
|
android:textColorHint="#929390"
|
|
|
- android:textSize="14sp"></EditText>
|
|
|
-
|
|
|
+ android:textSize="14sp"
|
|
|
+ app:on_action="@{(a,b,c)->vm.onAction(b)}" />
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_delete"
|
|
|
android:layout_width="14dp"
|
|
|
android:layout_height="14dp"
|
|
|
android:layout_marginLeft="10dp"
|
|
|
- android:src="@drawable/stock_delete">
|
|
|
+ android:src="@drawable/stock_delete" >
|
|
|
|
|
|
- </ImageView>
|
|
|
-
|
|
|
-
|
|
|
- </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+ </ImageView >
|
|
|
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout >
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_search"
|
|
@@ -80,16 +81,16 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginLeft="18dp"
|
|
|
android:gravity="center|left"
|
|
|
+ android:onClick="@{v->vm.firstReq()}"
|
|
|
android:text="搜索"
|
|
|
android:textColor="#3274F6"
|
|
|
- android:textSize="15sp">
|
|
|
-
|
|
|
- </TextView>
|
|
|
+ android:textSize="15sp" >
|
|
|
|
|
|
- </LinearLayout>
|
|
|
+ </TextView >
|
|
|
|
|
|
- </LinearLayout>
|
|
|
+ </LinearLayout >
|
|
|
|
|
|
+ </LinearLayout >
|
|
|
|
|
|
</layout >
|
|
|
|