8 description="Creates a new blank activity, with an action bar and navigational elements such as tabs or horizontal swipe.">
10 <category value="Activity" />
11 <formfactor value="Mobile" />
17 constraints="class|unique|nonempty"
18 suggest="${layoutToActivity(layoutName)}"
19 default="MainActivity"
20 help="The name of the activity class to create" />
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" />
32 id="fragmentLayoutName"
33 name="Fragment Layout Name"
35 constraints="layout|unique|nonempty"
36 suggest="fragment_${classToResource(activityClass)}"
37 default="fragment_main"
38 help="The name of the layout to create for the activity's content fragment" />
44 constraints="nonempty"
45 default="MainActivity"
46 suggest="${activityClass}"
47 help="The name of the activity. For launcher activities, the application title." />
51 name="Launcher Activity"
54 help="If true, this activity will have a CATEGORY_LAUNCHER intent filter, making it visible in the launcher" />
57 id="parentActivityClass"
58 name="Hierarchical Parent"
60 constraints="activity|exists|empty"
62 help="The hierarchical parent activity, used to provide a default implementation for the 'Up' button" />
66 name="Navigation Style"
69 help="Additional features to include, such as a fragment, swipe views, or a navigation drawer" >
70 <option id="pager">Swipe Views (ViewPager)</option>
71 <option id="tabs">Action Bar Tabs (with ViewPager)</option>
72 <option id="spinner">Action Bar Spinner</option>
80 default="com.mycompany.myapp" />
82 <!-- 128x128 thumbnails relative to template.xml -->
84 <!-- default thumbnail is required -->
85 <thumb>template_blank_activity_pager.png</thumb>
86 <!-- attributes act as selectors based on chosen parameters -->
87 <thumb features="tabs">template_blank_activity_tabs.png</thumb>
88 <thumb features="pager">template_blank_activity_pager.png</thumb>
89 <thumb features="spinner">template_blank_activity_dropdown.png</thumb>
92 <globals file="globals.xml.ftl" />
93 <execute file="recipe.xml.ftl" />