Debian Codegraph @

templates/eclipse/other/BlankFragment/template.xml

raw
1 <?xml version="1.0"?>
2 <template
3 format="4"
4 revision="2"
5 name="Fragment (Blank)"
6 description="Creates a blank fragment that is compatible back to API level 4."
7 minApi="7"
8 minBuildApi="8">
9
10 <category value="Fragment" />
11
12 <dependency name="android-support-v4" revision="8" />
13
14 <parameter
15 id="className"
16 name="Fragment Name"
17 type="string"
18 constraints="class|nonempty|unique"
19 default="BlankFragment"
20 help="The name of the fragment class to create" />
21
22 <parameter
23 id="includeLayout"
24 name="Create layout XML?"
25 type="boolean"
26 default="true"
27 help="Generate a layout XML for the fragment" />
28
29 <parameter
30 id="fragmentName"
31 name="Fragment Layout Name"
32 type="string"
33 constraints="layout|nonempty|unique"
34 default="fragment_blank"
35 visibility="includeLayout"
36 suggest="fragment_${classToResource(className)}"
37 help="The name of the layout to create" />
38
39 <parameter
40 id="includeFactory"
41 name="Include fragment factory methods?"
42 type="boolean"
43 default="true"
44 help="Generate static fragment factory methods for easy instantiation" />
45
46 <parameter
47 id="includeCallbacks"
48 name="Include interface callbacks?"
49 type="boolean"
50 default="true"
51 help="Generate event callbacks for communication with an Activity or other fragments" />
52
53 <thumbs>
54 <thumb>template_blank_fragment.png</thumb>
55 </thumbs>
56
57 <globals file="globals.xml.ftl" />
58 <execute file="recipe.xml.ftl" />
59
60 </template>