开发者

Create a view carousel

开发者 https://www.devze.com 2023-03-28 16:35 出处:网络
I\'d like to create something like a carousel with views. A continuum queue with an indetermined amount of the same type of view (just like a list), but when swiping left/right, (or up/down) it would

I'd like to create something like a carousel with views. A continuum queue with an indetermined amount of the same type of view (just like a list), but when swiping left/right, (or up/down) it would move to the next/previous view (I could be cool if it did that with an animation, too). Plus, I also nee开发者_如何学运维d to move though it by buttons. For example, "move to view 20".

Could you give me an advice on what to use for my purpose? Thanks in advance

Edit: By the way, grey big thing in the picture represents the current view, while the other thinner rectangles are the preceding and following view.

Create a view carousel


Please take a look on this answer Android page control like book?

You can make gaps between pages with setting margins or padding.

0

精彩评论

暂无评论...
验证码 换一张
取 消