aboutsummaryrefslogtreecommitdiffstats
path: root/templates/activities/BlankActivity/recipe.xml.ftl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/activities/BlankActivity/recipe.xml.ftl')
-rw-r--r--templates/activities/BlankActivity/recipe.xml.ftl29
1 files changed, 17 insertions, 12 deletions
diff --git a/templates/activities/BlankActivity/recipe.xml.ftl b/templates/activities/BlankActivity/recipe.xml.ftl
index 78bd8b2..148b09d 100644
--- a/templates/activities/BlankActivity/recipe.xml.ftl
+++ b/templates/activities/BlankActivity/recipe.xml.ftl
@@ -1,32 +1,37 @@
<?xml version="1.0"?>
<recipe>
- <merge from="AndroidManifest.xml.ftl" />
+ <merge from="AndroidManifest.xml.ftl"
+ to="${manifestOut}/AndroidManifest.xml" />
<instantiate from="res/menu/main.xml.ftl"
- to="res/menu/${menuName}.xml" />
+ to="${resOut}/menu/${menuName}.xml" />
- <merge from="res/values/strings.xml.ftl" />
+ <merge from="res/values/strings.xml.ftl"
+ to="${resOut}/values/strings.xml" />
- <merge from="res/values/dimens.xml" />
- <merge from="res/values-sw600dp/dimens.xml" />
- <merge from="res/values-sw720dp-land/dimens.xml" />
+ <merge from="res/values/dimens.xml"
+ to="${resOut}/values/dimens.xml" />
+ <merge from="res/values-sw600dp/dimens.xml"
+ to="${resOut}/values-sw600dp/dimens.xml" />
+ <merge from="res/values-sw720dp-land/dimens.xml"
+ to="${resOut}/values-sw720dp-land/dimens.xml" />
<!-- Decide what kind of layout to add (viewpager or not) -->
<#if navType?contains("pager")>
<instantiate from="res/layout/activity_pager.xml.ftl"
- to="res/layout/${layoutName}.xml" />
+ to="${resOut}/layout/${layoutName}.xml" />
<instantiate from="res/layout/fragment_dummy.xml.ftl"
- to="res/layout/fragment_${classToResource(activityClass)}_dummy.xml" />
+ to="${resOut}/layout/fragment_${classToResource(activityClass)}_dummy.xml" />
<#elseif navType == "tabs" || navType == "dropdown">
<instantiate from="res/layout/activity_fragment_container.xml"
- to="res/layout/${layoutName}.xml" />
+ to="${resOut}/layout/${layoutName}.xml" />
<instantiate from="res/layout/fragment_dummy.xml.ftl"
- to="res/layout/fragment_${classToResource(activityClass)}_dummy.xml" />
+ to="${resOut}/layout/fragment_${classToResource(activityClass)}_dummy.xml" />
<#else>
<instantiate from="res/layout/activity_simple.xml.ftl"
- to="res/layout/${layoutName}.xml" />
+ to="${resOut}/layout/${layoutName}.xml" />
</#if>
<!-- Decide which activity code to add -->
@@ -48,5 +53,5 @@
</#if>
- <open file="res/layout/${layoutName}.xml" />
+ <open file="${resOut}/layout/${layoutName}.xml" />
</recipe>