How to transition the activity from top to bottom and viceversa?
问题 Can anybody tell how to transition the activity from top to bottom in Android, perhaps with an example? 回答1: Define an animation in res/anim/slide_in_up.xml: <?xml version="1.0" encoding="utf-8"?> <translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromYDelta="100%p" android:toYDelta="0%p" android:duration="@android:integer/config_longAnimTime"/> and another at res/anim/slide_out_up.xml: <?xml version="1.0" encoding="utf-8"?> <translate xmlns:android="http://schemas