New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recyclerview嵌套在NestedScrollView里,一次性加载出全部数据问题 #1954
Comments
@chailijun 可以的 private final String TAG = "MainActivity";
// testAdapter.setOnLoadMoreListener(this,recyclerView);
} activity_main.xml <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
</android.support.constraint.ConstraintLayout> footer.xml
item.xml |
感谢楼上的写法,亲测可行。如果必须用ScrollView又不想用别的框架,可以使用楼上的写法来 |
非常感谢 AngelBo 解决了我APP首页问题 |
这样虽然是可以,但是我滑动到第四页之后就开始有了明显的卡顿现象,大神求教怎么解决这个问题 |
recyclerview嵌套在NestedScrollView里,一次性加载出全部数据问题。
因为要实现向上滑动时toolbar悬停在顶部的那种效果,所以recyclerview必须嵌套在NestedScrollView里。
作者给出的两种解决方法:
1.将嵌套部分的布局当作头部和尾部添加到rv上面或下面,去除ScrollView。
2.更换第三发的嵌套的上拉下拉控件。
第一种直接不可取,第二种就是要抛弃这个开源库的意思^_^
同时这个问题可以参考已关闭的issues #1821
The text was updated successfully, but these errors were encountered: