Debian Codegraph @

templates/activities/MasterDetailFlow/template.xml

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