我试图在图像视图中从上到下再向后移动图像..但图像似乎停留在原地并且根本不动。我尝试了动画类型,但它不起作用..这是代码..
setContentView(R.layout.game);
AnimationSet set=new AnimationSet(true);
Animation animation=new TranslateAnimation(0,2000,0,1220);
ImageView img =new ImageView(this);
img.setImageResource(R.drawable.dig);
animation.setDuration(3000);
animation.setFillAfter(true);
set.addAnimation(animation);
set.startNow();