创建anim包,存放动画xml
<?xml version="1.0" encoding="utf-8"?><translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromxdelta="0" android:toxdelta="-100%p" android:fromydelta="0" android:toydelta="0" android:duration="500"> </translate>下一页面进入:Tran_in.xml
<?xml version="1.0" encoding="utf-8"?><translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromxdelta="100%p" android:toxdelta="0" android:fromydelta="0" android:toydelta="0" android:duration="500"></translate>
<?xml version="1.0" encoding="utf-8"?><translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromxdelta="0" android:toxdelta="100%p" android:fromydelta="0" android:toydelta="0" android:duration="500"></translate>Tran_pre_in.xm
<?xml version="1.0" encoding="utf-8"?><translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromxdelta="-100%p" android:toxdelta="0" android:fromydelta="0" android:toydelta="0" android:duration="500"></translate>使用动画: