Android Studio Blank Activity

后端 未结 6 1137
遇见更好的自我
遇见更好的自我 2021-01-15 02:25

I\'m using Android Studio 2.1 and there is no Blank Activity option. I\'ve seen people asking about this, and the general advice was \"make one yourself\". The thing is tha

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-15 02:38

    Basic Activity comes with FloatingActionButton and menu layout. Empty Activity does not contain FloatingActionButton and menu xml layout, although you can add them manually when you feel so. What I feel is that Basic Activity is preferable because when you created Empty Activity and want to add menu in your activity it become rather difficult to add menu xml layout manually. I have personally encounter problems while adding menu xml manually.

提交回复
热议问题