Trinea / android-auto-scroll-view-pager

Android auto scroll viewpager or viewpager in viewpager
http://p.codekk.com/
Apache License 2.0
1.67k stars 670 forks source link

能提供一个ontouch的时候重新计时自动滚动api么? #2

Closed ghost closed 10 years ago

ghost commented 10 years ago

能提供一个ontouch的时候重新计时自动滚动api么?手动滑动的时候,会有页面突然乱跳的bug

Trinea commented 10 years ago

乱跳的问题,你用viewPager.setSlideBorderMode(AutoScrollViewPager.SLIDE_BORDER_MODE_NONE);就可以了,现在cycle mode还有点问题。

ontouch的时候重新计时自动滚动api么?这个什么意思

r17171709 commented 10 years ago

好像onTouch之后页面就不滚动了

Trinea commented 10 years ago

@IceHermes sorry,那天比较晚,这个bug改了后我以为提交了,结果忘了,你重新拉下就可以了

Trinea commented 10 years ago

@r17171709 sorry,那天比较晚,这个bug改了后我以为提交了,结果忘了,你重新拉下就可以了

ghost commented 10 years ago

@Trinea 就是你一触摸,viewpaper停止自动滚动,然后重新计时为默认滚动间隔时间在滚动.

Trinea commented 10 years ago

@IceHermes 现在就是这样啊

rabyunghwa commented 10 years ago

你好 能提供一个完整的应用代码吗?我是新手 不太会布置 谢谢

Trinea commented 10 years ago

@rabyunghwa https://github.com/Trinea/android-demo 应该代码都在这里,看readme,需要添加三个依赖库

rabyunghwa commented 10 years ago

哦 好的 太感谢啦!有一个小小的疑问:我想实现view pager的每一个页面只有一个text view而不是图片,应该怎么弄呢?效果类似于spotify页面的滚动的文字。我有一个截屏图 就像我用黑色圈出的部分。谢谢啦?我都纠结好久了。 On May 22, 2014 4:07 PM, "Trinea" notifications@github.com wrote:

@rabyunghwa https://github.com/rabyunghwa https://github.com/Trinea/android-demo 应该代码都在这里,看readme,需要添加三个依赖库

— Reply to this email directly or view it on GitHubhttps://github.com/Trinea/android-auto-scroll-view-pager/issues/2#issuecomment-43859351 .

Trinea commented 10 years ago

@rabyunghwa hello word 请google

rabyunghwa commented 10 years ago

哈哈 好吧 我是菜鸟 我先自己研究一下吧 On May 22, 2014 4:19 PM, "Trinea" notifications@github.com wrote:

@rabyunghwa https://github.com/rabyunghwa hello word 请google

— Reply to this email directly or view it on GitHubhttps://github.com/Trinea/android-auto-scroll-view-pager/issues/2#issuecomment-43860337 .