图库视图中图像的滚动速度
I am creating a cover flow of images by extending the Gallery
class.
The gallery view is being displayed properly but the speed with which the images scroll from right to left, and vice-versa, is very fast.
Is there any way we can regulate speed of the movement of the images on the horizontal direction from right to left, and vice-versa?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试更改
Gallery
对象的动画持续时间。使用 APIsetAnimationDuration
。增加动画的持续时间应该会降低滚动图像时的速度。
我不知道默认的动画持续时间,因此您可能必须通过反复试验的方法来找出它。 :)(如果你对此进行实验,你可以在这里发布你的发现吗?)
Try changing the animation duration of the
Gallery
object. Using the APIsetAnimationDuration
.Increasing the duration of the animation should give you a slower speed while scrolling through the images.
I am not aware of the default animation duration so you might have to figure it out via trial and error method. :) (If you do experiment on this, can you post your findings here?)