I have Activity A which is set to run in portrait orientation (android:screenOrientation="portrait" set on this activity in the manifest). This activity opens to Activity B on a button click. Activity B is set to run in landscape orientation (android:screenOrientation="landscape" set on this activity in the manifest). Regardless of what I set in my overridePendingTransition method, there is never an animation. It's always a hard cut. Is there a way to force some sort of animation when transitioning from Activity A to Activity B?
Also, I get the same issue when transitioning back from Activity B to Activity A.
Edit (from Praveen):
Even i have decalred the configChanges="orientation"
in the Manifest. Still i am facing this Problem?? Any Idea on this???
Thanks in advance
i think you have to override activity's onConfigurationChange method. perhaps this will help you.
for example
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig);
updateGui();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With