I just realized that every time I set RetainInstance (true) on a fragment, it works as expected (fragment data is saved), but this causes the user animation of the fragment to repeat after rotating the screen.
Is there any way to avoid / disable these animations while rotating the screen?
A fragment is created using the following animations:
setCustomAnimations (R.anim.slide_in_right, R.anim.slide_out_left, R.anim.slide_in_left, R.anim.slide_out_right);
So, I do not want these “sliding animations” to run on the screen again.
android rotation fragment
Tatocuervo
source share