Сделай так чтобы перый фрагмент сдвигался в лево, а второй в право : <vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
<path
android:name="left_rect"
    android:pathData="M12,0 H24 V24 H12 Z"
    android:fillColor="@color/white"/>
    </vector>
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:drawable="@drawable/second_fragment_background">
<target
android:name="left_rect"
    android:animation="@anim/fragment_transition_animation" />
    </animated-vector><?xml version="1.0" encoding="utf-8"?>
<translate
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:duration="500"
    android:fromXDelta="-100%p"
    android:toXDelta="0%p" /><?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:drawable="@drawable/first_fragment_background">
<target
android:name="left_rect"
    android:animation="@anim/fragment_transition_animation" />
    </animated-vector><vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
<path
android:name="left_rect"
    android:pathData="M0,0 H12 V24 H0 Z"
    android:fillColor="@color/white"/>
    </vector>