While creating any activity(other than empty) in android studio it is creating only activity xml, using Android Studio 3.1.4, Kindly help.
Content xml is not getting created for Basic activity
1.2k views Asked by Jason At
3
There are 3 answers
1
On
According to the documentation of Android Studio, activity_main.xml will affect how global UI of Activity is designed and works. But content_main.xml will affect the contents in the activity_main.xml.
Since a Basic Activity,Empty Activity doesn't have much content, thus the content_main.xml is not created for those. If you create a Navigation Drawer Activity, Studio will create both app_bar_main.xml , content_main.xml and activity_main.xml

Empty activity default contains only a single layout file
Read this Activity template
But you can create the content layout separately then include into the main activity.