Android Imageview自动滚动动画

时间:2013-05-15 02:11:11

标签: android imageview

我有一张图片(尺寸为600 * 400),我的图片浏览尺寸为(300 * 400)。

我想要加载此图像并使用动画从左向右自动滚动(在5秒内)。

我尝试使用“scrollto”和计时器,但它不是很好。

如何使用动画平滑滚动此图像视图?

非常感谢。

1 个答案:

答案 0 :(得分:0)

你试过使用Handler吗?

Handler handler1 = new Handler(); 
            handler1.postDelayed(new Runnable() { 
                 public void run() { 
                    "Your code that be executed after 5 seconds"
                 } 
            }, 5000);