Remove default TextView from new activity layout

Ilya Blokh

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)?

Ilya Blokh

I got it

layout.template file should be modified.

Path is: Android Studio\plugins\android\lib\templates\activities\[Activity-Type]\root\res\layout

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Accessing a layout's TextView from an Activity with a different layout

From Dev

Set default layout for new activity to "Linear layout" instead of "Relative layout" in Android Studio

From Dev

android new activity with intent and textView

From Dev

Remove the mysql output from the Cakephp 2.5 default layout

From Dev

Set TextView in Fragment from Activity

From Dev

Update TextView from another Activity

From Dev

Set TextView in Fragment from Activity

From Dev

Remove focus from TextView

From Dev

Remove header from Activity

From Dev

Change TextView from another Layout

From Dev

Access TextView in Layout from Fragment

From Dev

New Activity from ListView

From Dev

How to add new TextView to the MY LAYOUT

From Dev

how to remove this "line" between the actionbar and the activity layout

From Dev

how to remove this "line" between the actionbar and the activity layout

From Dev

how to remove fragment over an activity layout

From Dev

Eclipse create new android application project activity_main.xml file missing from layout folder

From Dev

Eclipse create new android application project activity_main.xml file missing from layout folder

From Dev

New activity without xml layout in Android studio

From Dev

update textview title in an Activity from a service

From Dev

SetText of TextView in DialogFragment from Calling Activity

From Dev

How to update a textview in a dialog fragment from an activity?

From Dev

how to set a text of a textview from another activity

From Dev

Android changing the TextView from another activity

From Dev

Android - changing textview from other activity

From Dev

Access to a TextView in Activity from Listview Adapter in android

From Dev

Android Updating A TextView From A Different Activity

From Dev

add a new dialog with new layout on the currently running activity without making changes to the layout file of currently running activity

From Dev

How to remove default layout's padding/margin

Related Related

  1. 1

    Accessing a layout's TextView from an Activity with a different layout

  2. 2

    Set default layout for new activity to "Linear layout" instead of "Relative layout" in Android Studio

  3. 3

    android new activity with intent and textView

  4. 4

    Remove the mysql output from the Cakephp 2.5 default layout

  5. 5

    Set TextView in Fragment from Activity

  6. 6

    Update TextView from another Activity

  7. 7

    Set TextView in Fragment from Activity

  8. 8

    Remove focus from TextView

  9. 9

    Remove header from Activity

  10. 10

    Change TextView from another Layout

  11. 11

    Access TextView in Layout from Fragment

  12. 12

    New Activity from ListView

  13. 13

    How to add new TextView to the MY LAYOUT

  14. 14

    how to remove this "line" between the actionbar and the activity layout

  15. 15

    how to remove this "line" between the actionbar and the activity layout

  16. 16

    how to remove fragment over an activity layout

  17. 17

    Eclipse create new android application project activity_main.xml file missing from layout folder

  18. 18

    Eclipse create new android application project activity_main.xml file missing from layout folder

  19. 19

    New activity without xml layout in Android studio

  20. 20

    update textview title in an Activity from a service

  21. 21

    SetText of TextView in DialogFragment from Calling Activity

  22. 22

    How to update a textview in a dialog fragment from an activity?

  23. 23

    how to set a text of a textview from another activity

  24. 24

    Android changing the TextView from another activity

  25. 25

    Android - changing textview from other activity

  26. 26

    Access to a TextView in Activity from Listview Adapter in android

  27. 27

    Android Updating A TextView From A Different Activity

  28. 28

    add a new dialog with new layout on the currently running activity without making changes to the layout file of currently running activity

  29. 29

    How to remove default layout's padding/margin

HotTag

Archive