Debian Codegraph @

templates/activities/ScrollActivity/template.xml

raw
1 <?xml version="1.0"?>
2 <template
3 format="5"
4 revision="1"
5 name="Scrolling Activity"
6 minApi="7"
7 minBuildApi="22"
8 requireAppTheme="true"
9 description="Creates a new vertical scrolling activity.">
10
11 <category value="Activity" />
12 <formfactor value="Mobile" />
13
14 <parameter
15 id="activityClass"
16 name="Activity Name"
17 type="string"
18 constraints="class|unique|nonempty"
19 default="ScrollingActivity"
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_scrolling"
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="ScrollingActivity"
37 suggest="${activityClass}"
38 help="The name of the activity. For launcher activities, the application title." />
39
40 <parameter
41 id="menuName"
42 name="Menu Resource Name"
43 type="string"
44 constraints="layout|unique|nonempty"
45 suggest="menu_${classToResource(activityClass)}"
46 visibility="isNewProject!false"
47 default="menu_scrolling"
48 help="The name of the resource file to create for the menu items" />
49
50 <parameter
51 id="isLauncher"
52 name="Launcher Activity"
53 type="boolean"
54 default="false"
55 help="If true, this activity will have a CATEGORY_LAUNCHER intent filter, making it visible in the launcher" />
56
57 <parameter
58 id="simpleLayoutName"
59 name="Content Layout Name"
60 type="string"
61 constraints="layout|unique"
62 suggest="${activityToLayout(activityClass, 'content')}"
63 default="content_scrolling"
64 visibility="false"
65 help="The name of the content layout to create for the activity" />
66
67 <parameter
68 id="parentActivityClass"
69 name="Hierarchical Parent"
70 type="string"
71 constraints="activity|exists|empty"
72 default=""
73 help="The hierarchical parent activity, used to provide a default implementation for the 'Up' button" />
74
75 <parameter
76 id="packageName"
77 name="Package name"
78 type="string"
79 constraints="package"
80 default="com.mycompany.myapp" />
81
82 <!-- 128x128 thumbnails relative to template.xml -->
83 <thumbs>
84 <!-- default thumbnail is required -->
85 <thumb>template_scroll_activity.png</thumb>
86 </thumbs>
87
88 <globals file="globals.xml.ftl" />
89 <execute file="recipe.xml.ftl" />
90
91 </template>