I hope for the help. I create at first for ImageView TranslateAnimation, then as AnimationEnd I register creation of AnimationDrawable in ListenerAnimation and I start it.
ImageView MyImageView = New ImageView(this);
MyImageView.setImageResources(R.drawable.mypic1);
TranslateAnimation tr = New TranslateAnimation(0, 0, 0, 50);
tr.setFillAfter(true);
tr.setDuration(3000);
MyImageView.startanimation(TR); 但我只看到第一枪。然后,如果之后我创建并且我将开始任何动画,例如,再次TranslateAnimation,AnimationDrawable完全开始。 AnimationDrawable ad = New AnimationDrawable(); ad.setOneShot(真); ad.addFrame(getResources()。getDrawable(R.drawable.mypic1),500); ad.addFrame(getResources()。getDrawable(R.drawable.mypic2),500); ad.selectDrawable(0); MyImageView.setImageDrawable(广告); ad.start(); 在AnimationDrawable仍然动画之后不能创建什么?我提前感谢你的帮助。