Animation between fragment transactions

61 Views Asked by At

I am try to do two animation while navigation from one fragment to other fragment. When I am in onefragment,On the tab click of activity,current fragment should slide left and on the launch of new fragment it should be sliding from right.

I tried intially using FragmentTransaction's setCustomAnimations(),but it was not successful.

So I am doing animations on status of fragment.So the SlideLeft transititionm,I am doing in Stop() of the fragment,While SlideIn transistion has been done on OnAcitvityCreated() of the fragment.

Please let me know Is this correct way or any other appropriate way to handle this

0

There are 0 best solutions below