This example is an implementation of the animation provided by Cyril Mottier in his blog : http://cyrilmottier.com/2014/05/20/custom-animations-with-fragments/
All the explanations are given in his article so feel free to read it first.
请使用最新版的Android Studio打开