start activity with left to right mode

后端 未结 5 1028
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 03:27

I am facing a problem .

I have three activities and i need to start new activity with slide left.

Activity1

Activity2

Activity3

means

5条回答
  •  离开以前
    2021-02-01 04:17

    call overridePendingTransition before starting the SecondActivity. It takes as parameters two int enterAnim, exitAnim.

    • enterAnim is a resource ID of the animation resource to use for the incoming activity. Use 0 for no animation
    • exitAnim is a resource ID of the animation resource to use for the outgoing activity. Use 0 for no animation.

提交回复
热议问题