private void moveLine(ImageView imageView, float fromX, float toX, float fromY, float toY) {
AnimationSet animationSet = new AnimationSet(true);
final TranslateAnimation animation = new TranslateAnimation(fromX, toX, fromY, toY);
animation.setDuration(300);//设置动画持续时间
animation.setFillAfter(false);//动画结束后是否回到原位
animationSet.addAnimation(animation);
imageView.startAnimation(animation);
}