Horizo​​ntalScrollView,自动滚动到结束与动画 [英] HorizontalScrollView, auto-scroll to end with animation

查看:245
本文介绍了Horizo​​ntalScrollView,自动滚动到结束与动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个horizo​​ntalScrollView,我需要做一个自动滚动,以结束与动画当我加载视图。我已经实现这个方法来做到这一点:

I have a horizontalScrollView and I need to make an auto-scroll to end with animation when I load the view. I have implemented this method to do it:

final HorizontalScrollView strip = (HorizontalScrollView) contentView.
    findViewById(R.id.horizontalScrollView1);

strip.postDelayed(new Runnable() {

    public void run() {
        strip.fullScroll(HorizontalScrollView.FOCUS_RIGHT);
    }
}, 1000L);

它工作正常,但是,主要的问题是滚动的动画实在是太快了,我需要实现一个较慢的滚动。你有什么想法?

It works fine, but, the main problem is the animation of the scrolling is too fast and I need to implement a slower scrolling. Have you any idea?

推荐答案

这是我为我的项目之一创建了一个示范项目。它是一个滚动条滚动自动continously。它是为了显示出币屏幕通过图像的列表continously滚动。 这可以帮助你或给你一些想法。

This is a demo project I created for one of my projects. Its a scroller the scroll automatically and continously. It was made to show a credits screen by continously scrolling through a list of images. This might help you or give you some idea.

https://github.com/blessenm/SlideshowDemo

这篇关于Horizo​​ntalScrollView,自动滚动到结束与动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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