<?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">
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:id="@+id/refreshLayout">
|
<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">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:orientation="vertical"
|
android:layout_height="wrap_content">
|
<com.youth.banner.Banner
|
android:id="@+id/banner"
|
android:layout_width="match_parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:banner_indicator_height="0dp"
|
android:layout_height="220dp"
|
app:banner_infinite_loop="true"
|
app:banner_auto_loop="true"/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_list"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"/>
|
</LinearLayout>
|
</androidx.core.widget.NestedScrollView>
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
android:layout_marginTop="100dp"
|
android:text="暂无数据"
|
android:id="@+id/tv_empty"
|
android:visibility="gone"
|
android:textSize="14sp"
|
android:textColor="@color/textColor99"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|