I am new to Android App development. I have Android Studio 1.4. In my layout folder I have two XML files (content_main.xml
and activity_main.xml
).
Android Studio 1.4 gives a default new option of content_main.xml
in the activity. actually activity load the xml file of activity_main.xml
for your layout. content_main.xml
is the part of main.xml
.
you can use both for layout,but main.xml
is necessary for your Activity. its a option to choose the content_main.xml
for design of layout.
Hope you get it.