Open
Description
详细描述
TextNothing 文案会在finish后显示在列表之上,向上滑动才会慢慢回到底部
使用版本
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.2'
implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.2'
布局代码
<com.scwang.smartrefresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srlEnableFooterFollowWhenNoMoreData="true"
app:srlEnableFooterTranslationContent="true">
<com.scwang.smartrefresh.layout.header.ClassicsHeader
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never" />
<!-- Empty占位图 -->
<!-- <androidx.core.widget.NestedScrollView
android:id="@+id/empty_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<TextView
android:id="@+id/empty_view"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</androidx.core.widget.NestedScrollView>-->
<!--<com.meelive.ingkee.discovery.widgets.SmartListFooter
android:layout_width="match_parent"
android:layout_height="wrap_content" />-->
<com.scwang.smartrefresh.layout.footer.ClassicsFooter
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:srlClassicsSpinnerStyle="Translate"
app:srlTextFailed=""
app:srlTextFinish=""
app:srlTextNothing="大神已经被你看完了~" />
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
Activity