Debian Codegraph @

templates/activities/GoogleAdMobAdsActivity/template.xml

raw
1 <?xml version="1.0"?>
2 <template
3 format="5"
4 revision="5"
5 name="Google AdMob Ads Activity"
6 minApi="7"
7 minBuildApi="14"
8 description="Creates an activity with AdMob Ad fragment.">
9
10 <category value="Google" />
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="menuName"
42 name="Menu Resource Name"
43 type="string"
44 constraints="layout|unique|nonempty"
45 suggest="menu_${classToResource(activityClass)}"
46 default="menu_main"
47 help="The name of the resource file to create for the menu items" />
48
49 <parameter
50 id="adFormat"
51 name="Ad Format"
52 type="enum"
53 default="interstitial"
54 help="Select Interstitial Ad or Banner Ad." >
55 <option id="interstitial">Interstitial</option>
56 <option id="banner">Banner</option>
57 </parameter>
58
59 <parameter
60 id="isLauncher"
61 name="Launcher Activity"
62 type="boolean"
63 default="false"
64 help="If true, this activity will have a CATEGORY_LAUNCHER intent filter, making it visible in the launcher" />
65
66 <parameter
67 id="parentActivityClass"
68 name="Hierarchical Parent"
69 type="string"
70 constraints="activity|exists|empty"
71 default=""
72 help="The hierarchical parent activity, used to provide a default implementation for the 'Up' button" />
73
74 <parameter
75 id="packageName"
76 name="Package name"
77 type="string"
78 constraints="package"
79 default="com.mycompany.myapp" />
80
81 <!-- 128x128 thumbnails relative to template.xml -->
82 <thumbs>
83 <!-- default thumbnail is required -->
84 <thumb>template_admob_activity.png</thumb>
85 <!-- attributes act as selectors based on chosen parameters -->
86 <thumb adFormat="interstitial">template_admob_activity_interstitial.png</thumb>
87 <thumb adFormat="banner">template_admob_activity_banner.png</thumb>
88 </thumbs>
89
90 <globals file="globals.xml.ftl" />
91 <execute file="recipe.xml.ftl" />
92
93 </template>