3

I want to override the default animations (actually transitions) in Android, when an Activity comes on screen or goes off as the user presses the Home or Back button. I've tried the ViewFlipper, but that works only on single Activity with multiple views. I'm developing for Android 1.6. Any hint, how to do this?

Greenhorn
  • 769
  • 2
  • 8
  • 17
  • Possible duplicate of [Android - How to animate an activity transition when the default back button is pressed](http://stackoverflow.com/questions/12047770/android-how-to-animate-an-activity-transition-when-the-default-back-button-is) – tir38 Jul 13 '16 at 21:34

1 Answers1

0

So perhaps you should take a look at: Android transitions Slide in and Slide Out

It sounds very much like what you want.

Robert Massaioli
  • 13,379
  • 7
  • 57
  • 73
  • Well I'm not sure that even makes sense. You move between activities with intents so your asking to animate in the intent transition phase...I guess you could call a different 'middle man' activity that runs a 'transition' view and then jump to the real next activity but I am not really sure that is a good idea. I am not sure how to do this and you may not even want to. – Robert Massaioli Mar 10 '11 at 04:54
  • No thats not a good way to do. Actually it is supported in Level 5 APIs by using the `overridePendingTransition` method of Activity class. But I didn't find anyway to do it in Level 4 (Android 1.6). – Greenhorn Mar 10 '11 at 05:08
  • @Greenhorn Do you find any solution for animation in api level 4? – Dr.jacky Nov 06 '12 at 08:07