I want to translation between two activity with animation. I want when user touches the image at top of page, the image translate to bottom of screen(slide down) and View of second activity move of top to bottom(slide down) and this like that tow move runs in same time. I dont know How can I implemented this? I use this code .
slide_down.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<scale
    android:duration="500"
    android:fromXScale="1.0"
    android:fromYScale="0.0"
    android:interpolator="@android:anim/linear_interpolator"
    android:toXScale="1.0"
    android:toYScale="1.0" />
</set>
mian:
 private OnTouchListener onTouchListener=new OnTouchListener(){
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        // TODO Auto-generated method stub
        Intent intent=new Intent(MainActivity.this,Test.class);
        //overridePendingTransition(R.anim.slide_down, R.anim.slide_down);
        startActivity(intent);
        overridePendingTransition(R.anim.slide_down, R.anim.slide_down);
        return false;
    }
};
When I run this code and touch image, the screen becomes black and then second activity starts and then the animation runs. But I want the animation when the first activity closes, second activity starts over the end of first activity