<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout 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:layout_height="match_parent">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="运动"
|
android:textSize="18sp"
|
android:layout_gravity="center"
|
android:paddingVertical="12dp"
|
android:textStyle="bold"
|
android:textColor="@color/textColor"
|
android:layout_marginTop="30dp"/>
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:id="@+id/refreshLayout"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<com.scwang.smart.refresh.header.ClassicsHeader
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
<androidx.core.widget.NestedScrollView
|
android:scrollbars="none"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<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"
|
android:layout_height="160dp"
|
android:layout_marginTop="10dp"
|
app:delay_time="5000"
|
app:is_auto_loop="true"
|
app:indicator_normal_color="@color/disableColor"
|
app:indicator_selected_color="@color/white"
|
android:layout_marginHorizontal="14dp"
|
app:layout_constraintTop_toTopOf="parent" />
|
<EditText
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/et_search"
|
app:layout_constraintTop_toBottomOf="@id/banner"
|
android:layout_marginTop="16dp"
|
android:layout_marginHorizontal="14dp"
|
android:background="@drawable/bg_grey_16dp"
|
android:hint="输入关键字搜索"
|
android:textSize="12sp"
|
android:textStyle="bold"
|
android:drawablePadding="6dp"
|
android:singleLine="true"
|
android:textColor="@color/textColor"
|
android:padding="9dp"
|
android:drawableStart="@mipmap/icon_search_gray"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_search"
|
app:layout_constraintBaseline_toBaselineOf="@id/et_search"
|
app:layout_constraintEnd_toEndOf="@id/et_search"
|
android:paddingVertical="5dp"
|
android:paddingHorizontal="16dp"
|
android:textColor="@color/colorPrimary"
|
android:text="搜索"
|
android:textStyle="bold"
|
android:layout_marginEnd="4dp"
|
android:textSize="12sp"
|
android:background="@drawable/bg_green_14_alpha"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_my_course"
|
app:layout_constraintTop_toBottomOf="@id/et_search"
|
app:layout_constraintEnd_toEndOf="@id/et_search"
|
android:text="我的课程"
|
android:textColor="@color/white"
|
android:textSize="14sp"
|
android:layout_marginTop="15dp"
|
android:textStyle="bold"
|
android:paddingHorizontal="20dp"
|
android:paddingVertical="8dp"
|
android:background="@drawable/bg_green_25dp"/>
|
<View
|
android:layout_width="29dp"
|
android:layout_height="6dp"
|
android:layout_marginBottom="6dp"
|
app:layout_constraintStart_toStartOf="@id/tv_1"
|
app:layout_constraintEnd_toEndOf="@id/tv_1"
|
app:layout_constraintBottom_toBottomOf="@id/tv_my_course"
|
android:background="@drawable/bg_indicator_gradient"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_1"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_my_course"
|
app:layout_constraintStart_toStartOf="@id/et_search"
|
android:text="课程筛选"
|
android:textStyle="bold"
|
android:textSize="18sp"
|
android:textColor="@color/textColor"/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toBottomOf="@id/tv_my_course"
|
android:layout_marginStart="14dp"
|
android:layout_marginTop="9dp"
|
android:id="@+id/rv_filter"/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/rv_course"
|
android:minHeight="500dp"
|
app:layout_constraintTop_toBottomOf="@id/rv_filter" />
|
</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>
|
</LinearLayout>
|