减少平滑滚动速度滚动视图 [英] Reduce speed of smooth scroll in scroll view

查看:237
本文介绍了减少平滑滚动速度滚动视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个滚动视图。我进行平滑scroll.using smoothScrollBy()。这一切工作正常,但我想改变平滑滚动的持续时间。平滑滚动发生的速度非常快,用户不理解什么happened.Please帮我减少平滑滚动速度?

I have a scroll View. I performed smooth-scroll.using smoothScrollBy().It all works fine, but I want to change the duration of the smooth-scroll. Smooth-scroll happens very fast and user is not understanding what happened.Please help me reduce smooth-scroll speed?

推荐答案

下面是一个定时器,它使用scrollTo一个解决方案,但你也可以使用scrollBy <一href="http://stackoverflow.com/questions/5193678/android-horizontalscrollview-smoothscroll-animation-time/5193880#5193880">Android: Horizo​​ntalScrollView smoothScroll动画时间

Here is a solution with a timer which uses scrollTo but you can also use scrollBy Android: HorizontalScrollView smoothScroll animation time

这篇关于减少平滑滚动速度滚动视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆