Commit 2bf2a86c authored by 小费同学阿's avatar 小费同学阿 💬 Committed by 杨秀秀

商户App 店员列表搜索框完成

parent 8a9467fa
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#F8F8F8"/>
<corners android:radius="24dp"/>
<stroke
android:width="1dp"
android:color="#E8E8E8"/>
</shape>
\ No newline at end of file
<?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"
xmlns:tools="http://schemas.android.com/tools"
xmlns:binding="http://schemas.android.com/apk/res-auto">
xmlns:binding="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="assistantManagementViewModel"
type="com.xx.merchanthbh.ui.assistant.AssistantManagementViewModel" />
<import type="me.goldze.mvvmhabit.binding.viewadapter.recyclerview.LayoutManagers" />
<import type="me.goldze.mvvmhabit.binding.viewadapter.recyclerview.LineManagers" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:fitsSystemWindows="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.xx.xxviewlibrary.witget.XxBar
android:id="@+id/bar"
on_click="@{assistantManagementViewModel.clickFinish}"
android:layout_width="match_parent"
android:layout_height="55dp"
app:right_click="@{assistantManagementViewModel.goAssistantAdd}"
app:right_src='@{@drawable/dianyuanguanli_icon_xinzeng}'
on_click="@{assistantManagementViewModel.clickFinish}"
app:bar_title='@{@string/assistant_management}'
app:layout_constraintTop_toTopOf="parent"
app:bar_title='@{@string/assistant_management}'/>
app:right_click="@{assistantManagementViewModel.goAssistantAdd}"
app:right_src='@{@drawable/dianyuanguanli_icon_xinzeng}' />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="55dp"
android:background="@drawable/bg_research"
android:gravity="center"
android:orientation="horizontal">
android:orientation="horizontal"
android:paddingTop="10dp"
android:layout_marginLeft="17dp"
android:layout_marginRight="17dp"
android:layout_marginBottom="13dp"
android:paddingBottom="10dp">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginLeft="17dp"
android:src="@mipmap/dianyuanguanli_icon_sousui" />
<LinearLayout
android:layout_width="wrap_content"
......@@ -44,29 +61,40 @@
android:layout_marginLeft="17dp"
android:layout_marginRight="15dp"
android:orientation="vertical">
<EditText
android:id="@+id/et_research"
style="@style/CommEdit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
android:text="@={assistantManagementViewModel.searchWord}"
android:hint="可输入店员名称进行搜索" />
android:textColorHint="#AEAEAE"
android:hint="可输入店员名称进行搜索"
android:text="@={assistantManagementViewModel.searchWord}" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:gravity="right"
android:layout_marginRight="17dp"
android:layout_height="wrap_content"
android:layout_marginRight="17dp"
android:gravity="right"
android:orientation="horizontal">
<ImageView
android:layout_width="1dp"
android:layout_height="30dp"
android:background="#E1E1E1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="搜索"
binding:onClickCommand="@{assistantManagementViewModel.goAssistantMsg}"
android:textSize="16dp"
android:textColor="#000000"/>
android:layout_marginLeft="14dp"
android:gravity="center"
android:textColor="#333333"
android:textSize="14dp"
binding:onClickCommand="@{assistantManagementViewModel.goAssistantMsg}" />
</LinearLayout>
</LinearLayout>
......@@ -75,13 +103,12 @@
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="90dp"
android:layout_marginTop="120dp"
android:background="@color/bg_grey">
<!--店员列表recycleView-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="13dp"
android:gravity="center"
tools:ignore="MissingConstraints">
<!-- LayoutManagers.linear(1,false) 竖向-->
......@@ -89,7 +116,6 @@
android:id="@+id/rv_assistant_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
binding:layoutManager="@{LayoutManagers.linear(1,false)}" />
</LinearLayout>
......@@ -97,8 +123,6 @@
</androidx.core.widget.NestedScrollView>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment