How to animate on finish() via ActivityOptions in Android?
问题 I'm working on an app that has two activities, Main and Info. The App is started with the MainActivity and when you click a button the InfoActivity slides in from the right side. When you click another button, InfoActivity shall slide out to the right side again and Main returns. This is how I implemented the Animation and the Button Click in MainActivity: buttonInfo.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent i = new Intent(getApplicationContext(),