<?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:id="@+id/refreshLayout"
|
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: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="0dp"
|
android:src="@mipmap/bg_guide"
|
app:layout_constraintDimensionRatio="390:205"
|
app:layout_constraintTop_toTopOf="parent" />
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="10dp"
|
android:background="@color/page_bg"
|
app:layout_constraintTop_toBottomOf="@id/banner" />
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_menu"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:background="@color/white"
|
app:layout_constraintTop_toBottomOf="@id/banner" />
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintTop_toBottomOf="@id/rv_menu"
|
android:paddingBottom="20dp"
|
android:background="@color/page_bg">
|
<TextView
|
android:id="@+id/tv_2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="19dp"
|
android:layout_marginTop="9dp"
|
android:fontFamily="@font/sourcehansanscn_regular"
|
android:text="推荐课程"
|
android:textColor="@color/textColor"
|
android:textSize="21sp"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="3dp"
|
android:text="与内心的宁静与喜悦入睡"
|
android:textSize="8sp"
|
app:layout_constraintBottom_toBottomOf="@id/tv_2"
|
app:layout_constraintStart_toStartOf="@id/tv_2" />
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/rv_course"
|
app:layout_constraintTop_toBottomOf="@id/tv_2"
|
android:layout_marginTop="10dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginBottom="50dp"
|
android:layout_marginHorizontal="12dp"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</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>
|