RecyclerView如何进行循环 [英] RecyclerView how to make cyclic

查看:78
本文介绍了RecyclerView如何进行循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带有元素的RecyclerView,例如1到10.有人可以帮忙吗?谢谢!

I have RecyclerView with elements, for example from 1 to 10. Can somebody help? Thanks!

1 2 3 4 5 6 7 8 9 10//创建时

1 2 3 4 5 6 7 8 9 10 //On create

当我滚动时,我想做这样的事情:

and when I scroll i want to make something like this:

9 10 1 2 3 4 5 6 7 8//滚动显示

9 10 1 2 3 4 5 6 7 8 //On Scroll

5 6 7 8 9 10 1 2 3 4

5 6 7 8 9 10 1 2 3 4

推荐答案

请参考以下回答类似问题的问题:

Please refer to the following question which answers a similar problem: How do I create a circular (endless) RecyclerView?

这篇关于RecyclerView如何进行循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆