Where can I find the Android Studio templates for Activity and gradle script? -


i using new appcompat v22.1, , change templates used android studio.

currently, android studio templates create activities extend actionbaractivity has been deprecated in v22.1. switch appcompatactivity without changing code each time.

is possible change them without waiting next android studio update?

yes can done:

activity templates located here: [android_studio_dir]\plugins\android\lib\templates\activities

  1. find template want change

  2. open \xxxactivity\root\src\app_package\xxxactivity.java.ftl, find , replace import of actionbaractivity , actionbaractivity appcompatactivity.


Popular posts from this blog

javascript - Js, document.getElementById("ID").innerHTML, error -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -

jquery - jqGrid update specific column data with out refreshing the entire column? -