I have sequence animation. Animation direction is 420mm.When animation finished I try to start another activity with ActivityOptionsCompat (bottom to top animation).Here is a my code
private void startSceneAnimation() {
if (imageView != null) {
((AnimationDrawable) imageView.getBackground()).start();
new Handler().postDelayed(() -> {
Intent intent = new Intent(LoginTestActivity.this,
SPLoginActivity.class);
ActivityOptionsCompat options = ActivityOptionsCompat.
makeSceneTransitionAnimation(LoginTestActivity.this,
logo,
ViewCompat.getTransitionName(logo));
startActivity(intent, options.toBundle());
}, 420);
}
}
Everything working perfect ,but I have one question.Is a any way to starting new activity when animation still finished(without stop animation).I try to start new activity after 300 mm but my sequence animation finished