New Activity in Android “enter from the side”

后端 未结 5 906
谎友^
谎友^ 2020-12-12 19:24

What\'s the best way to go to a new activity but make it look like the activity slides to the left and the new activity enters the screen? I am using intents to call the new

5条回答
  •  再見小時候
    2020-12-12 19:50

    There is a bit of a confusion as to what the enter and exit animations are. For those who are still pondering over it, here is a template..

    overridePendingTransition(
        enterAnimationForCalledActivity, 
        exitAnimationForCallingActivity
    );
    

    This should probably clear the air a bit.

提交回复
热议问题