lmw
2025-04-24 718f31c92e2029d05260810435a2c70cef6e6ce5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:orientation="vertical"
    android:background="@color/page_bg"
    android:layout_height="match_parent">
    <ImageView
        android:id="@+id/bg"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintDimensionRatio="39:35"
        android:src="@mipmap/bg_shop"
        android:scaleType="fitXY"/>
 
    <TextView
        android:layout_width="match_parent"
        android:layout_height="42dp"
        android:id="@+id/et_search"
        app:layout_constraintTop_toTopOf="@id/bg"
        app:layout_constraintVertical_bias="0.6"
        app:layout_constraintBottom_toBottomOf="@id/bg"
        android:layout_marginHorizontal="34dp"
        android:background="@drawable/bg_white_20dp"
        android:hint="搜索你附近的疗愈馆"
        android:textSize="12sp"
        android:drawablePadding="10dp"
        android:singleLine="true"
        android:gravity="center_vertical"
        android:textColor="@color/textColor"
        android:imeActionLabel="搜索"
        android:textColorHint="#DEDEDE"
        android:paddingHorizontal="25dp"
        android:drawableStart="@mipmap/ic_search_black"/>
 
    <com.scwang.smart.refresh.layout.SmartRefreshLayout
        android:id="@+id/refreshLayout"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintTop_toBottomOf="@id/et_search"
        android:layout_marginTop="32dp"
        app:layout_constraintBottom_toBottomOf="parent">
        <com.scwang.smart.refresh.header.ClassicsHeader
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
        <androidx.recyclerview.widget.RecyclerView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/rv_list"
            android:layout_marginHorizontal="18dp" />
        <com.scwang.smart.refresh.footer.ClassicsFooter
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>
    </com.scwang.smart.refresh.layout.SmartRefreshLayout>
 
</androidx.constraintlayout.widget.ConstraintLayout>