private Animation inFromRightAnimation() {
        Animation inFromRight = new TranslateAnimation(
                Animation.RELATIVE_TO_PARENT, +1.0f,
                Animation.RELATIVE_TO_PARENT, 0.0f,
                Animation.RELATIVE_TO_PARENT, 0.0f,
                Animation.RELATIVE_TO_PARENT, 0.0f);
        inFromRight.setDuration(300);
        inFromRight.setInterpolator(new AccelerateInterpolator());
        return inFromRight;
    }

<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate fromxdelta="100%p" toxdelta="0%p" duration="300"
        interpolator="@android:anim/accelerate_interpolator" />
</set>


안녕하세요.

검색하다 위와 같은 코드를 찾았는데요.

예를 들어 1번, 2번 화면이 있다고 하면

코드로 할때는 1번 화면에서 2번으로 넘어갈때

1번 화면과 2번 화면이 붙은 상태에서 슬라이드 넘기듯 2번 화면으로 스르륵 움직이는데 (일반적인 런처 화면 넘기는 효과와 같음)

xml로 할때는 2번 화면이 바로 나오고 1번 화면이 fade out 효과가 들어간 상태에서

잔상이 남으면서 왼쪽으로 사라집니다.

코드와 같은 효과를 xml로 내려면 어떻게 해야할까요?