Viewpager里面像&QUOT多个视图;脉冲"应用带 [英] Viewpager with multiple views inside like "Pulse" app strip
问题描述
可能重复:结果
<一href=\"http://stackoverflow.com/questions/9468581/android-can-view-pager-have-multiple-views-in-per-page\">Android - ?可以查看传呼机有多个意见每页
我使用ViewPager根据这个美好的教程:
I'm using ViewPager according to this wonderful tutorial:
的http://thepseudo$c$cr.word$p$pss.com/2011/10/05/android-page-swiping-using-viewpager/
本教程介绍了如何在每一次/ SWIP只显示一个网页或视图。
This tutorial shows how to display only one "page" or view in every time/swip.
我怎样才能让类似的脉冲应用带:
How can I make something like the strip in Pulse app:
这有像ViewPager的捕捉效果,但可以有多个里面看法?
That have the snapping effect like ViewPager but can have multiple views inside?
推荐答案
这似乎是视图寻呼机只做一次一个观点,不能有多个视图。
It seems like the view pager only does one view at a time and can't have multiple views.
您可以尝试用自己的一扔和触摸的方法来实现自己的水平滚动视图:的http://blog.velir.com/index.php/2010/11/17/android-snapping-horizontal-scroll/
You can try to implement your own horizontal scroll view with your own fling and touch methods: http://blog.velir.com/index.php/2010/11/17/android-snapping-horizontal-scroll/
,也可以扩展一个画廊,我认为是脉冲应用程序在做什么。注意捕捉定位每个项目的相似性画廊。
Or you can extend a Gallery which I think is what Pulse app is doing. Notice the snapping to position similarity of each item with the Gallery.
这篇关于Viewpager里面像&QUOT多个视图;脉冲&QUOT;应用带的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!