I\'m trying to animate the transition between fragments. I got the answer from the following
Android Fragments and animation
FragmentTransaction ft = g
Here's a slide in/out animation between fragments:
FragmentTransaction transaction = getFragmentManager().beginTransaction();
transaction.setCustomAnimations(R.animator.enter_anim, R.animator.exit_anim);
transaction.replace(R.id.listFragment, new YourFragment());
transaction.commit();
We are using an objectAnimator.
Here are the two xml files in the animator subfolder.
enter_anim.xml
exit_anim.xml
I hope that would help someone.