From 8736a27691b42a860998372d620fa4082dab81d9 Mon Sep 17 00:00:00 2001 From: Gabriele Mariotti Date: Thu, 24 Apr 2014 14:43:51 +0200 Subject: [PATCH] Changed the folder structure #1 All templates are now inside the templates folder. --- README.md | 14 +++++++++++++- .../SwipeRefreshLayout}/globals.xml.ftl | 0 .../activities/SwipeRefreshLayout}/recipe.xml.ftl | 0 .../root/AndroidManifest.xml.ftl | 0 .../SwipeRefreshLayout}/root/build.gradle.ftl | 0 .../root/res/layout/activity_simple.xml.ftl | 0 .../root/res/values-w820dp/dimens.xml | 0 .../root/res/values/colors.xml.ftl | 0 .../root/res/values/dimens.xml.ftl | 0 .../root/res/values/strings.xml.ftl | 0 .../root/src/app_package/SimpleActivity.java.ftl | 0 .../activities/SwipeRefreshLayout}/template.xml | 0 .../template_swiperefreshlayout_activity.png | Bin .../custom}/ArrayAdapter/globals.xml.ftl | 0 .../custom}/ArrayAdapter/recipe.xml.ftl | 0 .../root/src/app_package/CustomAdapter.java.ftl | 0 .../custom}/ArrayAdapter/template.xml | 0 .../custom}/ArrayAdapter/templates_adapter.png | Bin .../ArrayAdapterWithActivity/globals.xml.ftl | 0 .../ArrayAdapterWithActivity/recipe.xml.ftl | 0 .../root/AndroidManifest.xml.ftl | 0 .../root/build.gradle.ftl | 0 .../root/res/layout/activity_simple.xml.ftl | 0 .../root/res/values-w820dp/dimens.xml | 0 .../root/res/values/dimens.xml.ftl | 0 .../root/res/values/strings.xml.ftl | 0 .../root/src/app_package/CustomAdapter.java.ftl | 0 .../root/src/app_package/SimpleActivity.java.ftl | 0 .../custom}/ArrayAdapterWithActivity/template.xml | 0 .../templates_adapter.png | Bin 30 files changed, 13 insertions(+), 1 deletion(-) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/globals.xml.ftl (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/recipe.xml.ftl (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/root/AndroidManifest.xml.ftl (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/root/build.gradle.ftl (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/root/res/layout/activity_simple.xml.ftl (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/root/res/values-w820dp/dimens.xml (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/root/res/values/colors.xml.ftl (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/root/res/values/dimens.xml.ftl (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/root/res/values/strings.xml.ftl (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/root/src/app_package/SimpleActivity.java.ftl (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/template.xml (100%) rename {SwipeRefreshLayout => templates/activities/SwipeRefreshLayout}/template_swiperefreshlayout_activity.png (100%) rename {custom => templates/custom}/ArrayAdapter/globals.xml.ftl (100%) rename {custom => templates/custom}/ArrayAdapter/recipe.xml.ftl (100%) rename {custom => templates/custom}/ArrayAdapter/root/src/app_package/CustomAdapter.java.ftl (100%) rename {custom => templates/custom}/ArrayAdapter/template.xml (100%) rename {custom => templates/custom}/ArrayAdapter/templates_adapter.png (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/globals.xml.ftl (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/recipe.xml.ftl (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/root/AndroidManifest.xml.ftl (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/root/build.gradle.ftl (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/root/res/layout/activity_simple.xml.ftl (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/root/res/values-w820dp/dimens.xml (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/root/res/values/dimens.xml.ftl (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/root/res/values/strings.xml.ftl (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/root/src/app_package/CustomAdapter.java.ftl (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/root/src/app_package/SimpleActivity.java.ftl (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/template.xml (100%) rename {custom => templates/custom}/ArrayAdapterWithActivity/templates_adapter.png (100%) diff --git a/README.md b/README.md index 00e950e..3e4f46d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,16 @@ A small collection of Android Studio templates for Android development. -To use these templates you will need Android Studio. Copy the appropriate folders into `/plugins/android/lib/templates/` and they will appear in the project explorer context menu. +> To use these templates you will need Android Studio. + +> Copy the appropriate folders into `/plugins/android/lib/templates/` and they will appear in the project explorer context menu. + + +The `templates` folder contains these templates: + +* [SwipeRefreshLayout]: creates a new blank activity with a SwipeRefreshLayout. +* [Custom]: contains some useful common templates (check below for more details) + ### SwipeRefreshLayout @@ -67,3 +76,6 @@ License --- + +[SwipeRefreshLayout]:https://github.com/gabrielemariotti/AndroidStudioTemplate#swiperefreshlayout +[Custom]:https://github.com/gabrielemariotti/AndroidStudioTemplate#custom diff --git a/SwipeRefreshLayout/globals.xml.ftl b/templates/activities/SwipeRefreshLayout/globals.xml.ftl similarity index 100% rename from SwipeRefreshLayout/globals.xml.ftl rename to templates/activities/SwipeRefreshLayout/globals.xml.ftl diff --git a/SwipeRefreshLayout/recipe.xml.ftl b/templates/activities/SwipeRefreshLayout/recipe.xml.ftl similarity index 100% rename from SwipeRefreshLayout/recipe.xml.ftl rename to templates/activities/SwipeRefreshLayout/recipe.xml.ftl diff --git a/SwipeRefreshLayout/root/AndroidManifest.xml.ftl b/templates/activities/SwipeRefreshLayout/root/AndroidManifest.xml.ftl similarity index 100% rename from SwipeRefreshLayout/root/AndroidManifest.xml.ftl rename to templates/activities/SwipeRefreshLayout/root/AndroidManifest.xml.ftl diff --git a/SwipeRefreshLayout/root/build.gradle.ftl b/templates/activities/SwipeRefreshLayout/root/build.gradle.ftl similarity index 100% rename from SwipeRefreshLayout/root/build.gradle.ftl rename to templates/activities/SwipeRefreshLayout/root/build.gradle.ftl diff --git a/SwipeRefreshLayout/root/res/layout/activity_simple.xml.ftl b/templates/activities/SwipeRefreshLayout/root/res/layout/activity_simple.xml.ftl similarity index 100% rename from SwipeRefreshLayout/root/res/layout/activity_simple.xml.ftl rename to templates/activities/SwipeRefreshLayout/root/res/layout/activity_simple.xml.ftl diff --git a/SwipeRefreshLayout/root/res/values-w820dp/dimens.xml b/templates/activities/SwipeRefreshLayout/root/res/values-w820dp/dimens.xml similarity index 100% rename from SwipeRefreshLayout/root/res/values-w820dp/dimens.xml rename to templates/activities/SwipeRefreshLayout/root/res/values-w820dp/dimens.xml diff --git a/SwipeRefreshLayout/root/res/values/colors.xml.ftl b/templates/activities/SwipeRefreshLayout/root/res/values/colors.xml.ftl similarity index 100% rename from SwipeRefreshLayout/root/res/values/colors.xml.ftl rename to templates/activities/SwipeRefreshLayout/root/res/values/colors.xml.ftl diff --git a/SwipeRefreshLayout/root/res/values/dimens.xml.ftl b/templates/activities/SwipeRefreshLayout/root/res/values/dimens.xml.ftl similarity index 100% rename from SwipeRefreshLayout/root/res/values/dimens.xml.ftl rename to templates/activities/SwipeRefreshLayout/root/res/values/dimens.xml.ftl diff --git a/SwipeRefreshLayout/root/res/values/strings.xml.ftl b/templates/activities/SwipeRefreshLayout/root/res/values/strings.xml.ftl similarity index 100% rename from SwipeRefreshLayout/root/res/values/strings.xml.ftl rename to templates/activities/SwipeRefreshLayout/root/res/values/strings.xml.ftl diff --git a/SwipeRefreshLayout/root/src/app_package/SimpleActivity.java.ftl b/templates/activities/SwipeRefreshLayout/root/src/app_package/SimpleActivity.java.ftl similarity index 100% rename from SwipeRefreshLayout/root/src/app_package/SimpleActivity.java.ftl rename to templates/activities/SwipeRefreshLayout/root/src/app_package/SimpleActivity.java.ftl diff --git a/SwipeRefreshLayout/template.xml b/templates/activities/SwipeRefreshLayout/template.xml similarity index 100% rename from SwipeRefreshLayout/template.xml rename to templates/activities/SwipeRefreshLayout/template.xml diff --git a/SwipeRefreshLayout/template_swiperefreshlayout_activity.png b/templates/activities/SwipeRefreshLayout/template_swiperefreshlayout_activity.png similarity index 100% rename from SwipeRefreshLayout/template_swiperefreshlayout_activity.png rename to templates/activities/SwipeRefreshLayout/template_swiperefreshlayout_activity.png diff --git a/custom/ArrayAdapter/globals.xml.ftl b/templates/custom/ArrayAdapter/globals.xml.ftl similarity index 100% rename from custom/ArrayAdapter/globals.xml.ftl rename to templates/custom/ArrayAdapter/globals.xml.ftl diff --git a/custom/ArrayAdapter/recipe.xml.ftl b/templates/custom/ArrayAdapter/recipe.xml.ftl similarity index 100% rename from custom/ArrayAdapter/recipe.xml.ftl rename to templates/custom/ArrayAdapter/recipe.xml.ftl diff --git a/custom/ArrayAdapter/root/src/app_package/CustomAdapter.java.ftl b/templates/custom/ArrayAdapter/root/src/app_package/CustomAdapter.java.ftl similarity index 100% rename from custom/ArrayAdapter/root/src/app_package/CustomAdapter.java.ftl rename to templates/custom/ArrayAdapter/root/src/app_package/CustomAdapter.java.ftl diff --git a/custom/ArrayAdapter/template.xml b/templates/custom/ArrayAdapter/template.xml similarity index 100% rename from custom/ArrayAdapter/template.xml rename to templates/custom/ArrayAdapter/template.xml diff --git a/custom/ArrayAdapter/templates_adapter.png b/templates/custom/ArrayAdapter/templates_adapter.png similarity index 100% rename from custom/ArrayAdapter/templates_adapter.png rename to templates/custom/ArrayAdapter/templates_adapter.png diff --git a/custom/ArrayAdapterWithActivity/globals.xml.ftl b/templates/custom/ArrayAdapterWithActivity/globals.xml.ftl similarity index 100% rename from custom/ArrayAdapterWithActivity/globals.xml.ftl rename to templates/custom/ArrayAdapterWithActivity/globals.xml.ftl diff --git a/custom/ArrayAdapterWithActivity/recipe.xml.ftl b/templates/custom/ArrayAdapterWithActivity/recipe.xml.ftl similarity index 100% rename from custom/ArrayAdapterWithActivity/recipe.xml.ftl rename to templates/custom/ArrayAdapterWithActivity/recipe.xml.ftl diff --git a/custom/ArrayAdapterWithActivity/root/AndroidManifest.xml.ftl b/templates/custom/ArrayAdapterWithActivity/root/AndroidManifest.xml.ftl similarity index 100% rename from custom/ArrayAdapterWithActivity/root/AndroidManifest.xml.ftl rename to templates/custom/ArrayAdapterWithActivity/root/AndroidManifest.xml.ftl diff --git a/custom/ArrayAdapterWithActivity/root/build.gradle.ftl b/templates/custom/ArrayAdapterWithActivity/root/build.gradle.ftl similarity index 100% rename from custom/ArrayAdapterWithActivity/root/build.gradle.ftl rename to templates/custom/ArrayAdapterWithActivity/root/build.gradle.ftl diff --git a/custom/ArrayAdapterWithActivity/root/res/layout/activity_simple.xml.ftl b/templates/custom/ArrayAdapterWithActivity/root/res/layout/activity_simple.xml.ftl similarity index 100% rename from custom/ArrayAdapterWithActivity/root/res/layout/activity_simple.xml.ftl rename to templates/custom/ArrayAdapterWithActivity/root/res/layout/activity_simple.xml.ftl diff --git a/custom/ArrayAdapterWithActivity/root/res/values-w820dp/dimens.xml b/templates/custom/ArrayAdapterWithActivity/root/res/values-w820dp/dimens.xml similarity index 100% rename from custom/ArrayAdapterWithActivity/root/res/values-w820dp/dimens.xml rename to templates/custom/ArrayAdapterWithActivity/root/res/values-w820dp/dimens.xml diff --git a/custom/ArrayAdapterWithActivity/root/res/values/dimens.xml.ftl b/templates/custom/ArrayAdapterWithActivity/root/res/values/dimens.xml.ftl similarity index 100% rename from custom/ArrayAdapterWithActivity/root/res/values/dimens.xml.ftl rename to templates/custom/ArrayAdapterWithActivity/root/res/values/dimens.xml.ftl diff --git a/custom/ArrayAdapterWithActivity/root/res/values/strings.xml.ftl b/templates/custom/ArrayAdapterWithActivity/root/res/values/strings.xml.ftl similarity index 100% rename from custom/ArrayAdapterWithActivity/root/res/values/strings.xml.ftl rename to templates/custom/ArrayAdapterWithActivity/root/res/values/strings.xml.ftl diff --git a/custom/ArrayAdapterWithActivity/root/src/app_package/CustomAdapter.java.ftl b/templates/custom/ArrayAdapterWithActivity/root/src/app_package/CustomAdapter.java.ftl similarity index 100% rename from custom/ArrayAdapterWithActivity/root/src/app_package/CustomAdapter.java.ftl rename to templates/custom/ArrayAdapterWithActivity/root/src/app_package/CustomAdapter.java.ftl diff --git a/custom/ArrayAdapterWithActivity/root/src/app_package/SimpleActivity.java.ftl b/templates/custom/ArrayAdapterWithActivity/root/src/app_package/SimpleActivity.java.ftl similarity index 100% rename from custom/ArrayAdapterWithActivity/root/src/app_package/SimpleActivity.java.ftl rename to templates/custom/ArrayAdapterWithActivity/root/src/app_package/SimpleActivity.java.ftl diff --git a/custom/ArrayAdapterWithActivity/template.xml b/templates/custom/ArrayAdapterWithActivity/template.xml similarity index 100% rename from custom/ArrayAdapterWithActivity/template.xml rename to templates/custom/ArrayAdapterWithActivity/template.xml diff --git a/custom/ArrayAdapterWithActivity/templates_adapter.png b/templates/custom/ArrayAdapterWithActivity/templates_adapter.png similarity index 100% rename from custom/ArrayAdapterWithActivity/templates_adapter.png rename to templates/custom/ArrayAdapterWithActivity/templates_adapter.png