Android - how to get android.R.anim.slide_in_right

Solution 1:

Here are slide_in_right and slide_out_left from the Android open source project.

Solution 2:

android:inAnimation="@android:anim/slide_in_left"
android:outAnimation="@android:anim/slide_out_right"