How to create a template project for Android Studio

I am working with Android Studio. I need to create many projects with three modules:

  • application (application)
  • library (library)
  • wallpaper (application)

I know that you can use ADT to create Activity Templates, etc. I found several lessons, such as this and this , but they talk about an activity pattern, without a project with a module pattern.

Is there a good tutorial for creating a project template for Android Studio directly with the structure I need?

What IDE can be used to manage the template, for example, with a project (content assistant, etc.)?

+5
source share
1 answer

Yes, you can, but this is nothing more than creating an activity template.

Look in the android-studio/plugins/android/lib/templates/activities folder. And more specifically in the MasterDetailFlow template. You see that you can add an arbitrary number of actions, resources and layouts to your template. Thus, templates do not limit you to creating an entire project as a template project.

In each of the files, you can use the variables defined in globals.xml.ftl .

+3
source

Source: https://habr.com/ru/post/1232180/


All Articles