Me started an activity like this
Intent mainIntent = new Intent(v.getContext(), Second.class);
startActivity(mainIntent);
overridePendingTransition(android.R.anim.slide_out_right,
android.R.anim.slide_in_left);
I have set overridePendingTrasition for animation.
You can see i have set animation the oposite to the normal android startactivity animation.
So now this two animation get collapsed each other.
I want block the default animation (left->right) for while we use start activity
Thank you
asked Feb 14, 2011 at 4:27
Jithin
1,7754 gold badges18 silver badges26 bronze badges
1 Answer 1
You can prevent the default animation by setting flag FLAG_ACTIVITY_NO_ANIMATION
like this
mainIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
answered Feb 14, 2011 at 5:43
Labeeb Panampullan
34.8k28 gold badges99 silver badges112 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default
overridePendingTransition