(1) Create animation resouces like this
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<objectAnimator
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:propertyName="x"
android:valueFrom="1000"
android:valueTo="0"
android:valueType="floatType" />
</set>
(2) Call fragment transition when onFling event (I guess you already do this..)
(3) Use setCustomAnimations method for show animation that defines in (1) resources. (Assume that resource name was slideLeft.xml and slideRight.xml)
fragmentManager.beginTransaction()
.setCustomAnimations(R.anim.slideLeft, R.anim.slideRight)
.replace(R.id.container, myFragment)
.commit();
Note that setCustomAnimations method calling should be above of 'replace' method calling and parameter of setCustomAnimations method will be name of animation resou
And also check this answer https://stackoverflow.com/a/19769903 to more fully example for fragment animation.