@NonNull
    public static ActivityOptionsCompat makeCustomAnimation(@NonNull Context context,
                                                            int enterResId, int exitResId) {
        if (Build.VERSION.SDK_INT >= 16) {
            return new ActivityOptionsCompatImpl(ActivityOptions.makeCustomAnimation(context,
                    enterResId, exitResId));
        }
        return new ActivityOptionsCompat();
    }
Create an ActivityOptions specifying a custom animation to run when the
activity is displayed.

@param context    Who is defining this. This is the application that the
                  animation resources will be loaded from.
@param enterResId A resource ID of the animation resource to use for the
                  incoming activity. Use 0 for no animation.
@param exitResId  A resource ID of the animation resource to use for the
                  outgoing activity. Use 0 for no animation.
@return Returns a new ActivityOptions object that you can use to supply
these options as the options Bundle when starting an activity.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/ActivityOptionsCompat.java