动画从特定时间开始

时间:2013-08-27 11:04:14

标签: java android animation

我想在我的应用程序中使用动画,但它不是从开始开始,但从我设置的时间开始,热到达到这一点?我的代码从动画的开始工作:

ImageView someImage = (ImageView) findViewById(R.id.someImage);
Animation someAnimation = AnimationUtils.loadAnimation(this, R.anim.someAnimation);
someImage.startAnimation(someAnimation);

1 个答案:

答案 0 :(得分:1)

您可以使用Animation.setStartTime()设置时间,然后使用View.setAnimation()将动画指定给视图。

检查developer.android网站:http://developer.android.com/guide/topics/graphics/view-animation.html