Android的粘头RecyclerView /节头RecyclerView [英] Android sticky header RecyclerView/ Section Header RecyclerView
本文介绍了Android的粘头RecyclerView /节头RecyclerView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好所有我刚刚创建了一个演示用新的Android大号小部件RecyclerView.I工作也已实施拉要刷新使用SwipeRefreshLayout但问题我现在我怎么能实现粘头在这里,因为当我尝试设置
Hello All I have just created a demo to work with new android L widget RecyclerView.I have also implemented Pull-To-Refresh using SwipeRefreshLayout but problem for me now is how can I implement sticky header here,Because when i try to set
mRecyclerView.setOnScrollListener(new OnScrollListener() {
@Override
public void onScrolled(int arg0, int arg1) {
}
@Override
public void onScrollStateChanged(int arg0) {
// TODO Auto-generated method stub
}
});
我只得到这2种方法,所以不要有任何想法,我该怎么处理这...
I get only these 2 methods so dont have any idea how can I handle this...
请帮助..
推荐答案
这是我一直在寻找,如果有兴趣的人
Here is what I was looking if anyone interested
https://plus.google.com/114432517923423045208/posts/EdkQFx1RqhE
https://gist.github.com/gabrielemariotti/4c189fb1124df4556058
这篇关于Android的粘头RecyclerView /节头RecyclerView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文