aboutsummaryrefslogtreecommitdiffstats
path: root/templates/other/CustomView/recipe.xml.ftl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/other/CustomView/recipe.xml.ftl')
-rw-r--r--templates/other/CustomView/recipe.xml.ftl13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/other/CustomView/recipe.xml.ftl b/templates/other/CustomView/recipe.xml.ftl
new file mode 100644
index 0000000..d152df0
--- /dev/null
+++ b/templates/other/CustomView/recipe.xml.ftl
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<recipe>
+ <merge from="res/values/attrs.xml.ftl"
+ to="res/values/attrs_${view_class}.xml" />
+ <instantiate from="res/layout/sample.xml.ftl"
+ to="res/layout/sample_${view_class}.xml" />
+
+ <instantiate from="src/app_package/CustomView.java.ftl"
+ to="${srcOut}/${viewClass}.java" />
+
+ <open file="${srcOut}/${viewClass}.java" />
+ <open file="res/layout/sample_${view_class}.xml" />
+</recipe>