When I create new Activity class in Android studio , two XML layout files will generate automatically.
One of them have same name with my Activity and other XML file have name like : Content_[activity name].XML
Now, how can i turn off this auto generating work in Android Studio? 
I want to create new activities in android studio without any
XMLlayout file.
Follow these steps
1) Right click on your package name in which you want to create Activity.
2) Move your mouse cursor to New->Activity->Empty Activity.
3) Click on Empty Activity. you will see following window. "Unmark Generate Layout File"

4) Click Finish
Done...!!
If you don't want Android to Studio to generate the xml files for you, You must do every steps on your own.
That's it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With