Android : Disable 1.5 cupcake animation transitions
-
22-08-2019 - |
Question
Long story short, how can I disable the screen transitions between activities? We implemented our own tab handler if you will, and now it is doing a transition between tabs, which looks pretty tacky. Thanks!
Chris.
Solution
The Spare Parts app you find in the emulator, on self-built images and (i suppose) in the source tree let's you turn on/off those transitions(globally!). You may want to take a look at its source to get a clue how this works.
OTHER TIPS
See android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION
You should not be starting a whole new Activity for each tab. You should be embedding each Activity inside a android.app.ActivityGroup and use a android.app.LocalActivityManager.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow