In my project, I have a button. when the user clicks on it, he also shows the animation, after which he must load another action.
@Override public void onClick(View v) { switch (v.getId()){ case R.id.btnReadPage: startAnimation(); //stopAnimation(); //Toast.makeText(this, "Read Page Clicked", Toast.LENGTH_SHORT).show(); //startActivity(new Intent(this, ReadPage.class)); return; } }
according to the code above (startActivity, commented), when I launch the application and press the button, the animation will play. but if I uncomment it due to a quick transition, the animation is not displayed. How can I report that the animation is finished? Thanks
source share