New Activity in Android “enter from the side”

后端 未结 5 915
谎友^
谎友^ 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 20:00

    You could use a left_slide_out.xml (just change the toXDelta in Josh's right_slide_out.xml to read -100%p), to make the old activity disappear to the left (and also have the same duration on both of the animations).

提交回复
热议问题