I am trying to use activity transition animaition using OverridePendingTransition
The same code works while I move from 1 activity to another everywhere in my App
But when I use the same while transitioning from an activity which is a part of tab
to any other activity. The animation does not work and the standard animation takes place
Intent intent = new Intent(xxx.this,
yyy.class);
startActivity(intent);
overridePendingTransition(R.anim.slide_left_in, R.anim.slide_left_out);
here xxx is the class which is one of the tabs activity class and yyy is any activity class
I am stuck
Any help would be appreciated
Thanks
Cheers
Himanshu
I reported the same to google issues and the workaround provided was(I have not tried it though) :- I have found a way to work arround this, it is not perfect but it works.
I add the overridePendingTransition(R.anim.slide_left_in, R.anim.slide_left_out);
before the onPause on the TabActivity.