-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.xml
More file actions
201 lines (177 loc) · 6.08 KB
/
Copy pathtemplate.xml
File metadata and controls
201 lines (177 loc) · 6.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?xml version="1.0"?>
<template
format="5"
revision="6"
name="Navigation Drawer Activity"
minApi="9"
minBuildApi="14"
description="Creates a new Activity with a Navigation Drawer.">
<category value="Activity" />
<formfactor value="Mobile" />
<parameter
id="applicationClass"
name="Application Name"
type="string"
constraints="class|unique|nonempty"
default="MyApplication"
help="The name of the application class to create" />
<parameter
id="activityClass"
name="Activity Name"
type="string"
constraints="class|unique|nonempty"
suggest="${layoutToActivity(layoutName)}"
default="MainActivity"
help="The name of the activity class to create" />
<parameter
id="layoutName"
name="Layout Name"
type="string"
constraints="layout|unique|nonempty"
suggest="${activityToLayout(activityClass)}"
default="activity_main"
help="The name of the layout to create for the activity" />
<parameter
id="activityTitle"
name="Title"
type="string"
constraints="nonempty"
default="MainActivity"
suggest="${activityClass}"
help="The name of the activity. For launcher activities, the application title." />
<parameter
id="isLauncher"
name="Launcher Activity"
type="boolean"
default="false"
help="If true, this activity will have a CATEGORY_LAUNCHER intent filter, making it visible in the launcher" />
<parameter
id="parentActivityClass"
name="Hierarchical Parent"
type="string"
constraints="activity|exists|empty"
default=""
help="The hierarchical parent activity, used to provide a default implementation for the 'Up' button" />
<parameter
id="packageName"
name="Package name"
type="string"
constraints="package"
default="com.mycompany.myapp" />
<parameter
id="navigationDrawerLayout"
name="Navigation Drawer Fragment Name"
type="string"
visibility="false"
suggest="${activityToLayout(activityClass, 'drawer')}"
constraints="layout|unique"
default="fragment_navigation_drawer"/>
<parameter
id="fragmentLayoutName"
name="Fragment Layout Name"
type="string"
visibility="false"
constraints="layout|unique|nonempty"
suggest="${activityToLayout(activityClass, 'fragment')}"
default="fragment_main"
help="The name of the layout to create for the activity's content fragment"/>
<parameter
id="appBarLayoutName"
name="App Bar Layout Name"
type="string"
constraints="layout|unique"
suggest="${activityToLayout(activityClass, 'app_bar')}"
default="app_bar_main"
visibility="false"
help="The name of the App Bar layout to create for the activity" />
<parameter
id="navHeaderLayoutName"
name="Navigation Header Layout Name"
type="string"
constraints="layout|unique"
suggest="${activityToLayout(activityClass, 'nav_header')}"
default="nav_header_main"
visibility="false"
help="The name of the Navigation header layout to create for the activity" />
<parameter
id="drawerMenu"
name="Drawer Menu Name"
type="string"
constraints="layout|unique"
suggest="${layoutName}_drawer"
default="activity_main_drawer"
visibility="false"
help="The name of the Drawer menu to create for the activity" />
<parameter
id="contentLayoutName"
name="Content Layout Name"
type="string"
constraints="layout|unique"
suggest="${activityToLayout(activityClass, 'content')}"
default="content_main"
visibility="false"
help="The name of the content layout to create for the activity" />
<parameter
id="includeInstantAppUrl"
name="Associate a URL with this Activity"
type="boolean"
default="false"
visibility="isInstantApp!false"
help="If true, this activity will be associated with URL, improving discovery of your Instant App" />
<parameter
id="instantAppActivityHost"
name="Instant App URL Host"
type="string"
suggest="${companyDomain}"
default="instantapp.example.com"
visibility="isInstantApp!false"
enabled="includeInstantAppUrl"
help="The domain to use in the Instant App route for this activity"/>
<parameter
id="instantAppActivityRouteType"
name="Instant App URL Route Type"
type="enum"
default="pathPattern"
visibility="isInstantApp!false"
enabled="includeInstantAppUrl"
help="The type of route to use in the Instant App route for this activity" >
<option id="path">Path</option>
<option id="pathPrefix">Path Prefix</option>
<option id="pathPattern">Path Pattern</option>
</parameter>
<parameter
id="instantAppActivityRoute"
name="Instant App URL Route"
type="string"
default="/.*"
visibility="isInstantApp!false"
enabled="includeInstantAppUrl"
help="The route to use in the Instant App route for this activity"/>
<parameter
id="isSplash"
name="InstallSplash"
type="boolean"
default="false" />
<parameter
id="isCalligraphy"
name="InstallCalligraphy"
type="boolean"
default="false" />
<parameter
id="isKoin"
name="InstallKoin"
type="boolean"
default="false" />
<parameter
id="isApacheCommon"
name="InstallApacheCommon"
type="boolean"
default="false" />
<!-- 128x128 thumbnails relative to template.xml -->
<thumbs>
<!-- default thumbnail is required -->
<thumb>template_blank_activity_drawer.png</thumb>
</thumbs>
<globals file="globals.xml.ftl" />
<execute file="recipe.xml.ftl" />
</template>