Android. The effect of smooth screen rotation.

I would like to simulate iOS screen rotation in my application. My idea to do this is to use a sreen transition that scales and rotates the screen to fit the new orientation, but I don't know where to use overridePendingTransition so that the transition will affect the newly created action with the new orientation. Any ideas where to use overridePendingTransition?

+3


source to share


1 answer


You have to fake it by taking a screenshot and animating it. Everything is Activity

destroyed and re-created, and it suddenly disappears and reappears when you rotate the screen. Otherwise, you will have to manually handle configuration changes and handle all layout changes yourself.



iOS smoothly resizes all UI elements to fit new dimensions when rotated.

0


source







All Articles