lmw
2024-06-18 1f45a54dc8e149548d3a61d1228741627aa4f23e
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
<?xml version="1.0" encoding="utf-8"?>
<com.scwang.smart.refresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/refreshLayout"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <com.scwang.smart.refresh.header.ClassicsHeader
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>
    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbars="none">
        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
            <com.youth.banner.Banner
                android:id="@+id/banner"
                android:layout_width="match_parent"
                app:layout_constraintTop_toTopOf="parent"
                app:indicator_height="4dp"
                app:indicator_gravity="center"
                app:indicator_marginBottom="8dp"
                app:indicator_radius="3dp"
                app:indicator_normal_width="4dp"
                app:indicator_selected_width="6dp"
                app:indicator_selected_color="@color/white"
                app:indicator_normal_color="@color/white"
                android:layout_height="220dp"
                app:is_infinite_loop="true"
                app:is_auto_loop="true"/>
            <TextView
                android:id="@+id/tv_search"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="搜索"
                android:textColor="@color/colorPrimary"
                android:padding="10dp"
                app:layout_constraintBaseline_toBaselineOf="@id/et_search"
                app:layout_constraintEnd_toEndOf="parent"
                android:layout_marginEnd="4dp"
                android:textSize="14sp"
                android:textStyle="bold"/>
            <EditText
                android:id="@+id/et_search"
                android:layout_width="0dp"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintEnd_toStartOf="@id/tv_search"
                android:layout_height="wrap_content"
                app:layout_constraintTop_toBottomOf="@id/banner"
                android:textSize="14sp"
                android:layout_marginTop="9dp"
                android:hint="输入分类名称"
                android:paddingVertical="10dp"
                android:drawablePadding="6dp"
                android:paddingHorizontal="4dp"
                android:drawableStart="@mipmap/icon_search_gray"
                android:background="@drawable/bg_grey_4dp"
                android:layout_marginStart="14dp"/>
            <androidx.recyclerview.widget.RecyclerView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/rv_video"
                android:layout_marginTop="9dp"
                app:layout_constraintTop_toBottomOf="@id/et_search"/>
            <View
                android:layout_width="match_parent"
                android:layout_height="4dp"
                android:background="@drawable/bg_shadow_top"
                app:layout_constraintTop_toBottomOf="@id/et_search"
                android:layout_marginTop="8dp"/>
        </androidx.constraintlayout.widget.ConstraintLayout>
    </androidx.core.widget.NestedScrollView>
</com.scwang.smart.refresh.layout.SmartRefreshLayout>