animation为啥不起作用
//...获取按钮 findViewById.......
btn.getLocationOnScreen(position);
int posX = position[0];
int posY = position[1];;
//Animation translateAnimation = new TranslateAnimation(Animation.ABSOLUTE, 300,Animation.ABSOLUTE ,660, Animation.ABSOLUTE, 300, Animation.ABSOLUTE, 730);
Animation translateAnimation = new TranslateAnimation(posX, 500, posY, 700);
translateAnimation.setDuration(2000);
AnimationSet anSet = new AnimationSet(false);
anSet.addAnimation(translateAnimation);
btn.startAnimation(anSet);