属性动画









ObjectAnimator objectAnimator = ObjectAnimator.ofFloat(image_guidance,"alpha",0,0,0,0);
objectAnimator.setDuration(2000);
//开始
objectAnimator.start();
//监听事件
objectAnimator.addListener(new Animator.AnimatorListener() {
    @Override
    public void onAnimationStart(Animator animation) {

    }

    @Override
    public void onAnimationEnd(Animator animation) {
        startActivity(new Intent(MainActivity.this, SplashActivity.class));
        finish();
    }

    @Override
    public void onAnimationCancel(Animator animation) {

    }

    @Override
    public void onAnimationRepeat(Animator animation) {

    }
});







你可能感兴趣的:(属性动画)