splash_icon_rl = findViewById(R.id.splash_icon_rl);
// splash_icon = (ImageView) findViewById(R.id.splash_icon);
PropertyValuesHolder alpha = PropertyValuesHolder.ofFloat("alpha",
0.3f, 1f, 1f, 1f, 1f, 1f, 1f);
PropertyValuesHolder scaleX = PropertyValuesHolder.ofFloat(
"scaleX", 0.3f, 1f, 1f, 1f, 1f, 1f, 1f);
PropertyValuesHolder scaleY = PropertyValuesHolder.ofFloat(
"scaleY", 0.3f, 1f, 1f, 1f, 1f, 1f, 1f);
ObjectAnimator objectAnimator2 = ObjectAnimator
.ofPropertyValuesHolder(splash_icon_rl, alpha, scaleX,
scaleY);
AnimatorSet animatorSet2 = new AnimatorSet();
animatorSet2.playTogether(objectAnimator2);
animatorSet2.setInterpolator(new AccelerateInterpolator());
animatorSet2.setDuration(DURATION_2);
animatorSet2.addListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animator) {
}
@Override
public void onAnimationEnd(Animator animator) {
// if (!(UpdataLogic.getInstance(mContext,SplashActivity.this).inspectUpdata())) {
// Intent intent = new Intent(SplashActivity.this,
// MainActivity.class);
// startActivity(intent);
// SplashActivity.this.finish();
// }
}
@Override
public void onAnimationCancel(Animator animator) {
}
@Override
public void onAnimationRepeat(Animator animator) {
}
});
animatorSet2.start();