Dennie
Dennie

Reputation: 2651

How to create a Bottom-Top animation when close/stop an activity in android

How can I create a Slide-Bottom-To-Top animation when close/stop an activity in android application?

Upvotes: 2

Views: 2631

Answers (1)

Dimitar Dimitrov
Dimitar Dimitrov

Reputation: 16357

For the animation, use something like

hideWithSlideUp = new TranslateAnimation(0, 0, 0, -displayHeight);

You may have problems if you want the animation to be used on every application stop, including Android killing your app or the user starting a new full-screen Activity.

Upvotes: 2

Related Questions