New Activity in Android “enter from the side”

后端 未结 5 916
谎友^
谎友^ 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 20:11

    Yes, using intents is the standard way to start another activity, and usually does the sliding thing you mention. e.g. startActivity( new Intent( this, myNextActivity.class ) ); will do it.

提交回复
热议问题