Android 滑动过渡
如果问题是新手级别的,我很抱歉,但我刚刚开始学习 android 为我的公司创建移动杂志应用程序,我想要实现的是类似于本机 iPhone / iPad 主页中的滚动条的效果(其中显示当前安装的应用程序)。
页面转换将根据用户的手势进行。谢谢您的帮助!
I apologize if the question is of the newbie level but I just started learning android to create mobile magazine apps for my company and what I would like to achieve is an effect similar to the native iPhone's / iPad's scroller in the home page (one where the apps that are currently installed are displayed).
Page transitions will be made in accordance with the user's gestures. Thank you for the help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为
“页面转换将根据用户的手势进行”
意味着不是 ViewFlipper 的行为。
我建议使用 ViewPager,它可以在 android-support-v4 库中找到。
搜索 android-support-v4 库和文档。
我愿意回答任何有关问题。
I think
'Page transitions will be made in accordance with the user's gestures'
means not ViewFlipper's behavior.
I recommend to use ViewPager, which is available in android-support-v4 library.
search for android-support-v4 library and documents.
I'm open for any regarding questions.
这可以通过 ViewFlipper 和手势检测来实现。
View Flipper 将帮助您在多个视图之间翻转,并且手势将帮助您在视图之间滑动来实现它。这里有一些可以帮助您入门的链接。
如何制作 Android 视图在 swipe/fling 上切换视图
http://www.mediafire.com/?fg32sn1345xn5dl
http://android-journey.blogspot.com/2009/12/android-viewflipper-and-slidingdrawer.html
This can be achieved with ViewFlipper and gesture Detection.
View Flipper will help you flip between multiple views and gesture will help you to swipe between views to achieve it. Here are few links which will get you started.
How to make an Android view that flips between views on swipe/fling
http://www.mediafire.com/?fg32sn1345xn5dl
http://android-journey.blogspot.com/2009/12/android-viewflipper-and-slidingdrawer.html