Debian Codegraph @

templates/eclipse/activities/BlankActivity/template.xml

raw
1 <?xml version="1.0"?>
2 <template
3 format="3"
4 revision="4"
5 name="Blank Activity"
6 minApi="7"
7 minBuildApi="14"
8 description="Creates a new blank activity with an action bar.">
9
10 <category value="Activity" />
11 <formfactor value="Mobile" />
12
13 <parameter
14 id="activityClass"
15 name="Activity Name"
16 type="string"
17 constraints="class|unique|nonempty"
18 suggest="${layoutToActivity(layoutName)}"
19 default="MainActivity"
20 help="The name of the activity class to create" />
21
22 <parameter
23 id="layoutName"
24 name="Layout Name"
25 type="string"
26 constraints="layout|unique|nonempty"
27 suggest="${activityToLayout(activityClass)}"
28 default="activity_main"
29 help="The name of the layout to create for the activity" />
30
31 <parameter
32 id="activityTitle"
33 name="Title"
34 type="string"
35 constraints="nonempty"
36 default="MainActivity"
37 suggest="${activityClass}"
38 help="The name of the activity. For launcher activities, the application title." />
39
40 <parameter
41 id="isLauncher"
42 name="Launcher Activity"
43 type="boolean"
44 default="false"
45 help="If true, this activity will have a CATEGORY_LAUNCHER intent filter, making it visible in the launcher" />
46
47 <parameter
48 id="parentActivityClass"
49 name="Hierarchical Parent"
50 type="string"
51 constraints="activity|exists|empty"
52 default=""
53 help="The hierarchical parent activity, used to provide a default implementation for the 'Up' button" />
54
55 <parameter
56 id="packageName"
57 name="Package name"
58 type="string"
59 constraints="package"
60 default="com.mycompany.myapp" />
61
62 <!-- 128x128 thumbnails relative to template.xml -->
63 <thumbs>
64 <!-- default thumbnail is required -->
65 <thumb>template_blank_activity.png</thumb>
66 </thumbs>
67
68 <globals file="globals.xml.ftl" />
69 <execute file="recipe.xml.ftl" />
70
71 </template>