安卓在后台中写组合动画

1 Animation am = new TranslateAnimation(0, wmax / 2 - left, 0,hmax / 2 - top);
2 am.setDuration(1000);
3 Animation am1 = new AlphaAnimation(1, 0);
4 am1.setDuration(600);
5 AnimationSet as = new AnimationSet(true);
6 as.setFillAfter(true);
7 as.addAnimation(am);
8 as.addAnimation(am1);
9 img.startAnimation(as);
原文地址:https://www.cnblogs.com/zxbk/p/4721627.html