| 1 |
<?xml version="1.0"?> |
| 2 |
<template |
| 3 |
format="4" |
| 4 |
revision="2" |
| 5 |
name="App Widget" |
| 6 |
description="Creates a new App Widget" |
| 7 |
minApi="4" |
| 8 |
minBuildApi="16"> |
| 9 |
|
| 10 |
<category value="Widget" /> |
| 11 |
|
| 12 |
<parameter |
| 13 |
id="className" |
| 14 |
name="Class Name" |
| 15 |
type="string" |
| 16 |
constraints="class|unique|nonempty" |
| 17 |
default="NewAppWidget" |
| 18 |
help="The name of the App Widget to create" /> |
| 19 |
|
| 20 |
<parameter |
| 21 |
id="placement" |
| 22 |
name="Placement" |
| 23 |
type="enum" |
| 24 |
default="homescreen" |
| 25 |
help="Make the widget available on the Home-screen and/or on the Keyguard. Keyguard placement is only supported in Android 4.2 and above; this setting is ignored on earlier versions and defaults to Home-screen."> |
| 26 |
<option id="both">Home-screen and Keyguard</option> |
| 27 |
<option id="homescreen">Home-screen only</option> |
| 28 |
<option id="keyguard" >Keyguard only (API 17+)</option> |
| 29 |
</parameter> |
| 30 |
|
| 31 |
<parameter |
| 32 |
id="resizable" |
| 33 |
name="Resizable (API 12+)" |
| 34 |
type="enum" |
| 35 |
default="both" |
| 36 |
help="Allow the user to resize the widget. Feature only available on Android 3.1 and above."> |
| 37 |
<option id="both">Horizontally and vertically</option> |
| 38 |
<option id="horizontal">Only horizontally</option> |
| 39 |
<option id="vertical" >Only vertically</option> |
| 40 |
<option id="none">Not resizable</option> |
| 41 |
</parameter> |
| 42 |
|
| 43 |
<parameter |
| 44 |
id="minWidth" |
| 45 |
name="Minimum Width (cells)" |
| 46 |
type="enum" |
| 47 |
default="1"> |
| 48 |
<option id="1">1</option> |
| 49 |
<option id="2" >2</option> |
| 50 |
<option id="3" >3</option> |
| 51 |
<option id="4" >4</option> |
| 52 |
</parameter> |
| 53 |
|
| 54 |
<parameter |
| 55 |
id="minHeight" |
| 56 |
name="Minimum Height (cells)" |
| 57 |
type="enum" |
| 58 |
default="1"> |
| 59 |
<option id="1">1</option> |
| 60 |
<option id="2" >2</option> |
| 61 |
<option id="3" >3</option> |
| 62 |
<option id="4" >4</option> |
| 63 |
</parameter> |
| 64 |
|
| 65 |
<parameter |
| 66 |
id="configurable" |
| 67 |
name="Configuration Screen" |
| 68 |
type="boolean" |
| 69 |
default="false" |
| 70 |
help="Generates a widget configuration activity" /> |
| 71 |
|
| 72 |
<globals file="globals.xml.ftl" /> |
| 73 |
<execute file="recipe.xml.ftl" /> |
| 74 |
|
| 75 |
|
| 76 |
<thumbs> |
| 77 |
<thumb>thumbs/template_widget_3x3_vh.png</thumb> |
| 78 |
|
| 79 |
<thumb minWidth="1" minHeight="1" resizable="none" >thumbs/template_widget_1x1.png</thumb> |
| 80 |
<thumb minWidth="2" minHeight="1" resizable="none" >thumbs/template_widget_2x1.png</thumb> |
| 81 |
<thumb minWidth="3" minHeight="1" resizable="none" >thumbs/template_widget_3x1.png</thumb> |
| 82 |
<thumb minWidth="4" minHeight="1" resizable="none" >thumbs/template_widget_4x1.png</thumb> |
| 83 |
<thumb minWidth="1" minHeight="2" resizable="none" >thumbs/template_widget_1x2.png</thumb> |
| 84 |
<thumb minWidth="2" minHeight="2" resizable="none" >thumbs/template_widget_2x2.png</thumb> |
| 85 |
<thumb minWidth="3" minHeight="2" resizable="none" >thumbs/template_widget_3x2.png</thumb> |
| 86 |
<thumb minWidth="4" minHeight="2" resizable="none" >thumbs/template_widget_4x2.png</thumb> |
| 87 |
<thumb minWidth="1" minHeight="3" resizable="none" >thumbs/template_widget_1x3.png</thumb> |
| 88 |
<thumb minWidth="2" minHeight="3" resizable="none" >thumbs/template_widget_2x3.png</thumb> |
| 89 |
<thumb minWidth="3" minHeight="3" resizable="none" >thumbs/template_widget_3x3.png</thumb> |
| 90 |
<thumb minWidth="4" minHeight="3" resizable="none" >thumbs/template_widget_4x3.png</thumb> |
| 91 |
<thumb minWidth="1" minHeight="4" resizable="none" >thumbs/template_widget_1x4.png</thumb> |
| 92 |
<thumb minWidth="2" minHeight="4" resizable="none" >thumbs/template_widget_2x4.png</thumb> |
| 93 |
<thumb minWidth="3" minHeight="4" resizable="none" >thumbs/template_widget_3x4.png</thumb> |
| 94 |
<thumb minWidth="4" minHeight="4" resizable="none" >thumbs/template_widget_4x4.png</thumb> |
| 95 |
|
| 96 |
<thumb minWidth="1" minHeight="1" resizable="horizontal">thumbs/template_widget_1x1_h.png</thumb> |
| 97 |
<thumb minWidth="2" minHeight="1" resizable="horizontal">thumbs/template_widget_2x1_h.png</thumb> |
| 98 |
<thumb minWidth="3" minHeight="1" resizable="horizontal">thumbs/template_widget_3x1_h.png</thumb> |
| 99 |
<thumb minWidth="4" minHeight="1" resizable="horizontal">thumbs/template_widget_4x1_h.png</thumb> |
| 100 |
<thumb minWidth="1" minHeight="2" resizable="horizontal">thumbs/template_widget_1x2_h.png</thumb> |
| 101 |
<thumb minWidth="2" minHeight="2" resizable="horizontal">thumbs/template_widget_2x2_h.png</thumb> |
| 102 |
<thumb minWidth="3" minHeight="2" resizable="horizontal">thumbs/template_widget_3x2_h.png</thumb> |
| 103 |
<thumb minWidth="4" minHeight="2" resizable="horizontal">thumbs/template_widget_4x2_h.png</thumb> |
| 104 |
<thumb minWidth="1" minHeight="3" resizable="horizontal">thumbs/template_widget_1x3_h.png</thumb> |
| 105 |
<thumb minWidth="2" minHeight="3" resizable="horizontal">thumbs/template_widget_2x3_h.png</thumb> |
| 106 |
<thumb minWidth="3" minHeight="3" resizable="horizontal">thumbs/template_widget_3x3_h.png</thumb> |
| 107 |
<thumb minWidth="4" minHeight="3" resizable="horizontal">thumbs/template_widget_4x3_h.png</thumb> |
| 108 |
<thumb minWidth="1" minHeight="4" resizable="horizontal">thumbs/template_widget_1x4_h.png</thumb> |
| 109 |
<thumb minWidth="2" minHeight="4" resizable="horizontal">thumbs/template_widget_2x4_h.png</thumb> |
| 110 |
<thumb minWidth="3" minHeight="4" resizable="horizontal">thumbs/template_widget_3x4_h.png</thumb> |
| 111 |
<thumb minWidth="4" minHeight="4" resizable="horizontal">thumbs/template_widget_4x4_h.png</thumb> |
| 112 |
|
| 113 |
<thumb minWidth="1" minHeight="1" resizable="vertical" >thumbs/template_widget_1x1_v.png</thumb> |
| 114 |
<thumb minWidth="2" minHeight="1" resizable="vertical" >thumbs/template_widget_2x1_v.png</thumb> |
| 115 |
<thumb minWidth="3" minHeight="1" resizable="vertical" >thumbs/template_widget_3x1_v.png</thumb> |
| 116 |
<thumb minWidth="4" minHeight="1" resizable="vertical" >thumbs/template_widget_4x1_v.png</thumb> |
| 117 |
<thumb minWidth="1" minHeight="2" resizable="vertical" >thumbs/template_widget_1x2_v.png</thumb> |
| 118 |
<thumb minWidth="2" minHeight="2" resizable="vertical" >thumbs/template_widget_2x2_v.png</thumb> |
| 119 |
<thumb minWidth="3" minHeight="2" resizable="vertical" >thumbs/template_widget_3x2_v.png</thumb> |
| 120 |
<thumb minWidth="4" minHeight="2" resizable="vertical" >thumbs/template_widget_4x2_v.png</thumb> |
| 121 |
<thumb minWidth="1" minHeight="3" resizable="vertical" >thumbs/template_widget_1x3_v.png</thumb> |
| 122 |
<thumb minWidth="2" minHeight="3" resizable="vertical" >thumbs/template_widget_2x3_v.png</thumb> |
| 123 |
<thumb minWidth="3" minHeight="3" resizable="vertical" >thumbs/template_widget_3x3_v.png</thumb> |
| 124 |
<thumb minWidth="4" minHeight="3" resizable="vertical" >thumbs/template_widget_4x3_v.png</thumb> |
| 125 |
<thumb minWidth="1" minHeight="4" resizable="vertical" >thumbs/template_widget_1x4_v.png</thumb> |
| 126 |
<thumb minWidth="2" minHeight="4" resizable="vertical" >thumbs/template_widget_2x4_v.png</thumb> |
| 127 |
<thumb minWidth="3" minHeight="4" resizable="vertical" >thumbs/template_widget_3x4_v.png</thumb> |
| 128 |
<thumb minWidth="4" minHeight="4" resizable="vertical" >thumbs/template_widget_4x4_v.png</thumb> |
| 129 |
|
| 130 |
<thumb minWidth="1" minHeight="1" resizable="both" >thumbs/template_widget_1x1_vh.png</thumb> |
| 131 |
<thumb minWidth="2" minHeight="1" resizable="both" >thumbs/template_widget_2x1_vh.png</thumb> |
| 132 |
<thumb minWidth="3" minHeight="1" resizable="both" >thumbs/template_widget_3x1_vh.png</thumb> |
| 133 |
<thumb minWidth="4" minHeight="1" resizable="both" >thumbs/template_widget_4x1_vh.png</thumb> |
| 134 |
<thumb minWidth="1" minHeight="2" resizable="both" >thumbs/template_widget_1x2_vh.png</thumb> |
| 135 |
<thumb minWidth="2" minHeight="2" resizable="both" >thumbs/template_widget_2x2_vh.png</thumb> |
| 136 |
<thumb minWidth="3" minHeight="2" resizable="both" >thumbs/template_widget_3x2_vh.png</thumb> |
| 137 |
<thumb minWidth="4" minHeight="2" resizable="both" >thumbs/template_widget_4x2_vh.png</thumb> |
| 138 |
<thumb minWidth="1" minHeight="3" resizable="both" >thumbs/template_widget_1x3_vh.png</thumb> |
| 139 |
<thumb minWidth="2" minHeight="3" resizable="both" >thumbs/template_widget_2x3_vh.png</thumb> |
| 140 |
<thumb minWidth="3" minHeight="3" resizable="both" >thumbs/template_widget_3x3_vh.png</thumb> |
| 141 |
<thumb minWidth="4" minHeight="3" resizable="both" >thumbs/template_widget_4x3_vh.png</thumb> |
| 142 |
<thumb minWidth="1" minHeight="4" resizable="both" >thumbs/template_widget_1x4_vh.png</thumb> |
| 143 |
<thumb minWidth="2" minHeight="4" resizable="both" >thumbs/template_widget_2x4_vh.png</thumb> |
| 144 |
<thumb minWidth="3" minHeight="4" resizable="both" >thumbs/template_widget_3x4_vh.png</thumb> |
| 145 |
<thumb minWidth="4" minHeight="4" resizable="both" >thumbs/template_widget_4x4_vh.png</thumb> |
| 146 |
</thumbs> |
| 147 |
|
| 148 |
</template> |