How to add new activity to existing project in Android Studio?

前端 未结 5 705
天命终不由人
天命终不由人 2020-11-29 02:16

In Eclipse you just clicked the new button and select the android activity to add new activity. But Android Studio is a bit diferent; I couldn\'t find out how to add new act

5条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 02:57

    In Android Studio, go to app -> src -> main -> java -> com.example.username.projectname

    Right click on com.example.username.projectname -> Activity -> ActivityType

    Fill in the details of the New Android Activity and click Finish.

    Viola! new activity added to the existing project.

提交回复
热议问题