aboutsummaryrefslogtreecommitdiffstats
path: root/templates/other/CustomView/template.xml
diff options
context:
space:
mode:
Diffstat (limited to 'templates/other/CustomView/template.xml')
-rw-r--r--templates/other/CustomView/template.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/other/CustomView/template.xml b/templates/other/CustomView/template.xml
new file mode 100644
index 0000000..9511566
--- /dev/null
+++ b/templates/other/CustomView/template.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<template
+ name="New Custom View"
+ description="Creates a new custom view that extends android.view.View, and exposes custom attributes.">
+
+ <category value="UI Components" />
+
+ <parameter
+ id="packageName"
+ name="Package name"
+ type="string"
+ constraints="package"
+ default="com.mycompany.myapp" />
+
+ <parameter
+ id="viewClass"
+ name="View Class"
+ type="string"
+ constraints="class|unique"
+ default="MyView"
+ help="By convention, should end in 'View'" />
+
+ <globals file="globals.xml.ftl" />
+ <execute file="recipe.xml.ftl" />
+
+</template> \ No newline at end of file