I am starting an activity and would rather have a alpha fade-in for startActivity(), and a fade-out for the finish(). How can I go about this in the Android SDK?
I am starting an activity and would rather have a alpha fade-in for startActivity()
Share
In the same statement in which you execute finish(), execute your animation there too. Then, in the new activity, run another animation. See this code:
fadein.xml
In your finish-class
fadeout.xml
In your new Activity-class you create a similiar method like the runFadeAnimation I wrote and then you run it in onCreate and don’t forget to change the resources id to fadeout.