Debian Codegraph @

templates/eclipse/activities/MasterDetailFlow/template.xml

raw
1 <?xml version="1.0"?>
2 <template
3 format="4"
4 revision="5"
5 name="Master/Detail Flow"
6 minApi="4"
7 description="Creates a new master/detail flow, allowing users to view a collection of objects as well as details for each object. This flow is presented using two columns on tablet-size screens and one column on handsets and smaller screens. This template creates two activities, a master fragment, and a detail fragment."
8 category="Activity">
9
10 <dependency name="android-support-v4" revision="8" />
11
12 <category value="Activity" />
13 <formfactor value="Mobile" />
14
15 <thumbs>
16 <thumb>template_master_detail.png</thumb>
17 </thumbs>
18
19 <parameter
20 id="objectKind"
21 name="Object Kind"
22 type="string"
23 constraints="nonempty"
24 default="Item"
25 help="Other examples are 'Person', 'Book', etc." />
26
27 <parameter
28 id="objectKindPlural"
29 name="Object Kind Plural"
30 type="string"
31 constraints="nonempty"
32 default="Items"
33 help="Other examples are 'People', 'Books', etc." />
34
35 <parameter
36 id="activityTitle"
37 name="Title"
38 type="string"
39 constraints="nonempty"
40 suggest="${objectKindPlural}"
41 default="Items" />
42
43 <parameter
44 id="isLauncher"
45 name="Launcher Activity"
46 type="boolean"
47 default="false"
48 help="If true, the primary activity in the flow will have a CATEGORY_LAUNCHER intent filter, making it visible in the launcher" />
49
50 <parameter
51 id="parentActivityClass"
52 name="Hierarchical Parent"
53 type="string"
54 constraints="activity|exists|empty"
55 default=""
56 help="The hierarchical parent activity, used to provide a default implementation for the 'Up' button" />
57
58 <parameter
59 id="packageName"
60 name="Package name"
61 type="string"
62 constraints="package"
63 default="com.mycompany.myapp" />
64
65 <globals file="globals.xml.ftl" />
66 <execute file="recipe.xml.ftl" />
67
68 </template>