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

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -