M
M
m2_viktor2015-10-23 11:27:55
Android
m2_viktor, 2015-10-23 11:27:55

Why is content.xml created in Android studio along with activity?

Hello, not long ago I downloaded android studio from the official site, created a project, and found that now when creating an activity, not only layout.xml describing the interface is created, but also content.xml.
PS Now I urgently need to compile and run the old application, but at startup it crashes with the text: "An error has occurred in the application" I don't want to analyze the problems of my application here, I was just alerted by the situation with laout.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lopatoid, 2015-10-29
@m2_viktor

Well, their XML has grown, and they split it into two (layout.xml includes content.xml). To avoid this, when creating a new Activity from the GUI, choose not "Blank Activity", but "Empty Activity"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question