How to prevent Eclipse from creating fragment_main.xml

后端 未结 2 1581
旧巷少年郎
旧巷少年郎 2021-02-10 22:56

I installed Eclipse on a new machine and it keeps creating fragment_main.xml when I create a new Android Application Project. How can I prevent Eclipse from doing t

2条回答
  •  长情又很酷
    2021-02-10 23:18

    There's currently no way (as far as I know) to keep Android from creating a fragment when you create an Activity. You can uncheck the "Create Activity" check box and create a new Activity, but that's really all you can do.

    Anyways, Fragments are good for Phone/Tablet Compatibility, and should be used in almost all scenarios except for very basic uses.

提交回复
热议问题