开发者

Horizontal Scrollview with pages in Android

开发者 https://www.devze.com 2023-04-05 05:04 出处:网络
I 开发者_开发问答am looking for a behavior very similar to ios where we can scroll horizontally to see multiple pages (like a walkthrough/demo). In ios we can do it with UIScrollView and PageControl b

I 开发者_开发问答am looking for a behavior very similar to ios where we can scroll horizontally to see multiple pages (like a walkthrough/demo). In ios we can do it with UIScrollView and PageControl but not sure how can that be done in Android?

I don't mind if it's not possible to add the bullets of PageControl. I am more concerned about the pages type behavior of scrollview.


Take a look at this article on viewPager, I think it has the something as you require.

http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html


You can use ViewFlipper in android to scroll or swipe between the different layouts....

Try searching "android ViewFlipper onFling()" on google..

http://www.codeshogun.com/blog/tag/view-flipper/

0

精彩评论

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

关注公众号