小球

ObjectAnimator anim3 = ObjectAnimator.ofFloat(mBlueBall,
"translationY", -500f, 0f);

ObjectAnimator anim4 = ObjectAnimator.ofFloat(mBlueBall,
"translationY", 0f, -500f);

/**
* anim1,anim2,anim3同时执行
* anim4接着执行
*/
AnimatorSet animSet = new AnimatorSet();

animSet.play(anim4).after(anim3);
animSet.setDuration(1000);
animSet.start();
posted @ 2017-11-09 16:38  于大大  阅读(217)  评论(0编辑  收藏  举报