1
\$\begingroup\$

I got the new android studio, and I noticed one thing when creating a new activity.

enter image description here

The layout that corresponds with the java for the activity is made twice, once as a content:

enter image description here

This new layout is an exact replica of the regular activity_menu.xml except this one is called content_menu.xml. I also noticed this piece of code in the layout code of activity_menu.xml:

    <include layout="@layout/content_menu" />

What is the point of this extra layout? Can I delete it? I found this on the official documentation, but I still don't understand why it is necessary. This wasn't there in the first update...

Thanks,

Ruchir

\$\endgroup\$

closed as off-topic by MichaelHouse Dec 4 '15 at 2:23

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Programming questions that aren't specific to game development are off-topic here, but can be asked on Stack Overflow. A good rule of thumb is to ask yourself "would a professional game developer give me a better/different/more specific answer to this question than other programmers?"" – MichaelHouse
If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ ...This is about game development...I was trying to develop my game, when this weird layout stuff started happening. \$\endgroup\$ – Ruchir Baronia Dec 4 '15 at 2:51
  • \$\begingroup\$ this question itself is not about game development \$\endgroup\$ – CobaltHex Dec 4 '15 at 3:01
  • \$\begingroup\$ If, for example, your computer wouldn't power on when you were trying to develop your game, you wouldn't ask it here. \$\endgroup\$ – MichaelHouse Dec 4 '15 at 17:21