| 1 |
<?xml version="1.0"?> |
| 2 |
<template |
| 3 |
format="5" |
| 4 |
revision="2" |
| 5 |
name="Fragment (with a +1 button)" |
| 6 |
description="Creates a fragment with a Google Plus +1 button." |
| 7 |
minApi="8" |
| 8 |
minBuildApi="8"> |
| 9 |
|
| 10 |
<category value="Fragment" /> |
| 11 |
|
| 12 |
<dependency name="android-support-v4" revision="8" /> |
| 13 |
|
| 14 |
<category value="Other" /> |
| 15 |
|
| 16 |
<parameter |
| 17 |
id="className" |
| 18 |
name="Fragment Name" |
| 19 |
type="string" |
| 20 |
constraints="class|nonempty|unique" |
| 21 |
default="PlusOneFragment" |
| 22 |
help="The name of the fragment class to create" /> |
| 23 |
|
| 24 |
<parameter |
| 25 |
id="includeFactory" |
| 26 |
name="Include fragment factory methods?" |
| 27 |
type="boolean" |
| 28 |
default="true" |
| 29 |
help="Generate static fragment factory methods for easy instantiation" /> |
| 30 |
|
| 31 |
<parameter |
| 32 |
id="includeCallbacks" |
| 33 |
name="Include interface callbacks?" |
| 34 |
type="boolean" |
| 35 |
default="true" |
| 36 |
help="Generate event callbacks for communication with an Activity or other fragments" /> |
| 37 |
|
| 38 |
<thumbs> |
| 39 |
<thumb>templates_plusone_fragment.png</thumb> |
| 40 |
</thumbs> |
| 41 |
|
| 42 |
<globals file="globals.xml.ftl" /> |
| 43 |
<execute file="recipe.xml.ftl" /> |
| 44 |
|
| 45 |
</template> |