lmw
昨天 855a7e18a795f0db2453a19e3e8f26ba2ff553b4
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <View
        android:id="@+id/bg_title"
        android:layout_width="match_parent"
        android:layout_height="89dp"
        app:layout_constraintTop_toTopOf="parent"
        android:background="@drawable/bg_gradient_title"/>
    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@mipmap/title_logo"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:layout_marginTop="16dp"/>
    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/et_search"
        app:layout_constraintTop_toBottomOf="@id/bg_title"
        android:layout_marginHorizontal="65dp"
        android:layout_marginTop="14dp"
        android:background="@drawable/bg_white_19dp"
        android:paddingVertical="10dp"
        android:paddingHorizontal="20dp"
        android:hint="输入商品关键字搜索"
        android:textColor="@color/textColor"
        android:textColorHint="@color/textColor"
        android:textSize="14sp"
        android:singleLine="true"
        android:gravity="center_vertical"
        android:drawablePadding="12dp"
        android:drawableStart="@mipmap/search_black"/>
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:id="@+id/tv_search"
        app:layout_constraintTop_toTopOf="@id/et_search"
        app:layout_constraintBottom_toBottomOf="@id/et_search"
        app:layout_constraintEnd_toEndOf="@id/et_search"
        android:text="搜索"
        android:paddingHorizontal="20dp"
        android:gravity="center"
        android:textColor="@color/white"
        android:background="@drawable/bg_blue_20dp"/>
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/tv_score"
        app:layout_constraintEnd_toEndOf="@id/et_search"
        app:layout_constraintTop_toBottomOf="@id/et_search"
        android:layout_marginTop="16dp"
        android:textColor="#F7462D"
        android:fontFamily="@font/impact_regular"
        android:text="0"
        android:textSize="35sp"/>
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toTopOf="@id/tv_score"
        app:layout_constraintBottom_toBottomOf="@id/tv_score"
        android:textSize="16sp"
        android:id="@+id/tv_2"
        android:textColor="@color/textColor"
        app:layout_constraintEnd_toStartOf="@id/tv_score"
        android:text="剩余积分:"/>
    <TextView
        android:id="@+id/tv_1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toTopOf="@id/tv_score"
        app:layout_constraintBottom_toBottomOf="@id/tv_score"
        app:layout_constraintStart_toStartOf="@id/et_search"
        android:textSize="16sp"
        android:textColor="@color/textColor"
        android:text="商品分类:"/>
    <androidx.recyclerview.widget.RecyclerView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:id="@+id/rv_type"
        app:layout_constraintTop_toTopOf="@id/tv_score"
        app:layout_constraintBottom_toBottomOf="@id/tv_score"
        app:layout_constraintStart_toEndOf="@id/tv_1"
        app:layout_constraintEnd_toStartOf="@id/tv_2"/>
    <com.scwang.smart.refresh.layout.SmartRefreshLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:id="@+id/refreshLayout"
        app:layout_constraintTop_toBottomOf="@id/rv_type"
        android:layout_marginTop="14dp"
        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:layout_marginHorizontal="62dp"
            android:id="@+id/rv_goods"/>
        <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>