When you create new activity using IDE constructor (new->activity) - in both Android Studio and Eclipse - it creates new java file, layout file, adds activity to the manifest etc.
And every time there's a TextView
with "Hello World" text at the layout file (if you choose "Blank Activity" pattern). Also string value "Hello World" is automatically added into strings res file.
Of course no special effort is needed to delete manually string value and TextView
but one day it becomes really annoying.
My question:
If there's a way to change the new activity creation mechanism and create just empty activity layout file (only with container layout, e.g. RelativeLayout
)?
you can go to your sdk path /sdk/platforms/[android-version]/templates and modify the template files
Go to your SDK Path. In my case
sdk\platforms\android-[version]\templates
And open layout.template
in any editor like Notepad++
Delete Textview
widget from this layout.template
file.
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