| 1 |
<?xml version="1.0"?> |
| 2 |
<template |
| 3 |
format="5" |
| 4 |
revision="5" |
| 5 |
name="Settings Activity" |
| 6 |
description="Creates a new application settings activity that presents alternative layouts on handset and tablet-size screens." |
| 7 |
minApi="11" |
| 8 |
minBuildApi="11" |
| 9 |
requireAppTheme="true" |
| 10 |
category="Activity"> |
| 11 |
|
| 12 |
<dependency name="android-support-v4" revision="8"/> |
| 13 |
|
| 14 |
<category value="Activity"/> |
| 15 |
<formfactor value="Mobile"/> |
| 16 |
|
| 17 |
<parameter |
| 18 |
id="activityClass" |
| 19 |
name="Activity Name" |
| 20 |
type="string" |
| 21 |
constraints="class|unique|nonempty" |
| 22 |
default="SettingsActivity" |
| 23 |
help="The name of the activity class to create"/> |
| 24 |
|
| 25 |
<parameter |
| 26 |
id="activityTitle" |
| 27 |
name="Title" |
| 28 |
type="string" |
| 29 |
constraints="nonempty" |
| 30 |
default="Settings" |
| 31 |
help="The name of the activity."/> |
| 32 |
|
| 33 |
<parameter |
| 34 |
id="parentActivityClass" |
| 35 |
name="Hierarchical Parent" |
| 36 |
type="string" |
| 37 |
constraints="activity|exists|empty" |
| 38 |
default="" |
| 39 |
help="The hierarchical parent activity, used to provide a default implementation for the 'Up' button"/> |
| 40 |
|
| 41 |
<parameter |
| 42 |
id="packageName" |
| 43 |
name="Package name" |
| 44 |
type="string" |
| 45 |
constraints="package" |
| 46 |
default="com.mycompany.myapp"/> |
| 47 |
|
| 48 |
<!-- 128x128 thumbnails relative to template.xml --> |
| 49 |
<thumbs> |
| 50 |
<!-- default thumbnail is required --> |
| 51 |
<thumb>template_settings_activity.png</thumb> |
| 52 |
</thumbs> |
| 53 |
|
| 54 |
<globals file="globals.xml.ftl"/> |
| 55 |
<execute file="recipe.xml.ftl"/> |
| 56 |
|
| 57 |
</template> |