Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
HBHAndroid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨秀秀
HBHAndroid
Commits
2bf2a86c
Commit
2bf2a86c
authored
Aug 16, 2023
by
小费同学阿
💬
Committed by
杨秀秀
Nov 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商户App 店员列表搜索框完成
parent
8a9467fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
19 deletions
+53
-19
bg_research.xml
app/src/main/res/drawable/bg_research.xml
+10
-0
activity_assistant_management.xml
app/src/main/res/layout/activity_assistant_management.xml
+43
-19
No files found.
app/src/main/res/drawable/bg_research.xml
0 → 100644
View file @
2bf2a86c
<?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
app/src/main/res/layout/activity_assistant_management.xml
View file @
2bf2a86c
<?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=
"
9
0dp"
android:layout_marginTop=
"
12
0dp"
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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment