Debian Codegraph @

templates/activities/BlankWearActivity/template.xml

raw
1 <?xml version="1.0"?>
2 <template
3 format="5"
4 revision="2"
5 name="Blank Wear Activity"
6 minApi="20"
7 minBuildApi="20"
8 description="Creates a blank activity for Android Wear">
9
10 <category value="Activity" />
11 <formfactor value="Wear" />
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="roundLayout"
33 name="Round Layout Name"
34 type="string"
35 constraints="layout|unique|nonempty"
36 suggest="round_${activityToLayout(activityClass)}"
37 default="round"
38 help="The name of the round layout to create for the activity" />
39
40
41 <parameter
42 id="rectLayout"
43 name="Rectangular Layout Name"
44 type="string"
45 constraints="layout|unique|nonempty"
46 suggest="rect_${activityToLayout(activityClass)}"
47 default="rect"
48 help="The name of the rectangular layout to create for the activity" />
49
50
51 <parameter
52 id="isLauncher"
53 name="Launcher Activity"
54 type="boolean"
55 default="true"
56 help="If true, this activity will have a CATEGORY_LAUNCHER intent filter, making it the default launchable activity" />
57
58 <parameter
59 id="packageName"
60 name="Package name"
61 type="string"
62 constraints="package"
63 default="com.mycompany.myapp" />
64
65 <!-- 128x128 thumbnails relative to template.xml -->
66 <thumbs>
67 <!-- default thumbnail is required -->
68 <thumb>templates-WatchViewStub-Wear.png</thumb>
69 </thumbs>
70
71 <globals file="globals.xml.ftl" />
72 <execute file="recipe.xml.ftl" />
73
74 </template>