| 1 |
<?xml version="1.0"?> |
| 2 |
<template |
| 3 |
format="5" |
| 4 |
revision="5" |
| 5 |
name="Empty Activity" |
| 6 |
minApi="9" |
| 7 |
minBuildApi="14" |
| 8 |
description="Creates a new empty activity"> |
| 9 |
|
| 10 |
<category value="Activity" /> |
| 11 |
<formfactor value="Mobile" /> |
| 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="generateLayout" |
| 24 |
name="Generate Layout File" |
| 25 |
type="boolean" |
| 26 |
default="true" |
| 27 |
help="If true, a layout file will be generated" /> |
| 28 |
|
| 29 |
<parameter |
| 30 |
id="layoutName" |
| 31 |
name="Layout Name" |
| 32 |
type="string" |
| 33 |
constraints="layout|unique|nonempty" |
| 34 |
suggest="${activityToLayout(activityClass)}" |
| 35 |
default="activity_main" |
| 36 |
visibility="generateLayout" |
| 37 |
help="The name of the layout to create for the activity" /> |
| 38 |
|
| 39 |
<parameter |
| 40 |
id="isLauncher" |
| 41 |
name="Launcher Activity" |
| 42 |
type="boolean" |
| 43 |
default="false" |
| 44 |
help="If true, this activity will have a CATEGORY_LAUNCHER intent filter, making it visible in the launcher" /> |
| 45 |
|
| 46 |
<parameter |
| 47 |
id="backwardsCompatibility" |
| 48 |
name="Backwards Compatibility (AppCompat)" |
| 49 |
type="boolean" |
| 50 |
default="true" |
| 51 |
help="If false, this activity base class will be Activity instead of AppCompatActivity" /> |
| 52 |
|
| 53 |
<parameter |
| 54 |
id="packageName" |
| 55 |
name="Package name" |
| 56 |
type="string" |
| 57 |
constraints="package" |
| 58 |
default="com.mycompany.myapp" /> |
| 59 |
|
| 60 |
<!-- 128x128 thumbnails relative to template.xml --> |
| 61 |
<thumbs> |
| 62 |
<!-- default thumbnail is required --> |
| 63 |
<thumb>template_blank_activity.png</thumb> |
| 64 |
</thumbs> |
| 65 |
|
| 66 |
<globals file="globals.xml.ftl" /> |
| 67 |
<execute file="recipe.xml.ftl" /> |
| 68 |
|
| 69 |
</template> |