没有更多数据,并且当前在最底部,RecyclerView列表发生改变时(比如展开更多或者添加item数据),footer不会跟随底部滑动。
Author: zljt1314Created Jun 16, 2021Updated Dec 12, 2025
版本:2.0.3
问题描述:没有更多数据,并且当前在最底部,RecyclerView列表发生改变时(比如展开更多或者添加item数据),footer不会跟随底部滑动,还是在原来的位置,手动滑动到最底部时,恢复正常。
期望效果:当列表发生改变时,footer跟随在最后内容后面展示。
<com.scwang.smart.refresh.layout.SmartRefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent“>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</com.scwang.smart.refresh.layout.SmartRefreshLayout>Source: scwang90/SmartRefreshLayout