Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Content_main.xml missing

I am new to Android Studio. Following the tutorial given by developer.android I have created a new project. They asked to create a blank activity and as there is no one such, I have used Empty Activity as the template. Then the tutorial said that there will be a content_main.xml inside res/layout folder, but I didn't find one. Did I build the correct Application? What probably may be the wrong? Thanks in advance.

like image 869
aravindkanna Avatar asked Apr 29 '26 01:04

aravindkanna


1 Answers

content_main.xml file will be generated when you choose "blank activity" . This activity will be having floating button by default at the bottom of the screen.

But when you choose "empty activty" then content_main.xml won't be generated and it won't be having floating button , but just simple activity.

So for your tutorial choose "blank activity" and then your tutorial will run fine

like image 79
Mrugesh Thaker Avatar answered May 01 '26 15:05

Mrugesh Thaker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!