<?xml version="1.0" encoding="utf-8"?>
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:id="@+id/refreshLayout"
|
android:orientation="vertical">
|
|
<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">
|
|
|
<View
|
android:layout_width="29dp"
|
android:layout_height="6dp"
|
android:background="@drawable/bg_indicator_gradient"
|
app:layout_constraintEnd_toEndOf="@id/tv_1"
|
app:layout_constraintBottom_toBottomOf="@id/tv_1"
|
app:layout_constraintStart_toStartOf="@id/tv_1" />
|
|
<TextView
|
android:id="@+id/tv_1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="课程筛选"
|
android:textColor="@color/textColor"
|
android:textSize="18sp"
|
android:textStyle="bold"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintStart_toStartOf="@id/et_search" />
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_filter"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="14dp"
|
android:layout_marginTop="9dp"
|
app:layout_constraintTop_toBottomOf="@id/tv_1" />
|
<EditText
|
android:id="@+id/et_search"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="14dp"
|
android:layout_marginTop="16dp"
|
android:background="@drawable/bg_grey_16dp"
|
android:drawableStart="@mipmap/icon_search_gray"
|
android:drawablePadding="6dp"
|
android:hint="输入关键字搜索"
|
android:padding="9dp"
|
android:singleLine="true"
|
android:textColor="@color/textColor"
|
android:textSize="12sp"
|
android:textStyle="bold"
|
app:layout_constraintTop_toBottomOf="@id/rv_filter" />
|
|
<TextView
|
android:id="@+id/tv_search"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="4dp"
|
android:background="@drawable/bg_green_14_alpha"
|
android:paddingHorizontal="16dp"
|
android:paddingVertical="5dp"
|
android:text="搜索"
|
android:textColor="@color/colorPrimary"
|
android:textSize="12sp"
|
android:textStyle="bold"
|
app:layout_constraintBaseline_toBaselineOf="@id/et_search"
|
app:layout_constraintEnd_toEndOf="@id/et_search" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_course"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toBottomOf="@id/et_search" />
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.core.widget.NestedScrollView>
|
|
<com.scwang.smart.refresh.footer.ClassicsFooter
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|