aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorRoman Nurik <romannurik@google.com>2014-02-25 18:39:00 -0500
committerRoman Nurik <romannurik@google.com>2014-02-25 18:39:00 -0500
commit2e1c26848e617254927172e7904af63c43b9987e (patch)
treeb4b28d8a2ef501e80c0f1c826d0c189f0583c8ba /templates
parentb1051f74be9ecc0c13921115b5ad8f3a116ec877 (diff)
downloadsdk-2e1c26848e617254927172e7904af63c43b9987e.zip
sdk-2e1c26848e617254927172e7904af63c43b9987e.tar.gz
sdk-2e1c26848e617254927172e7904af63c43b9987e.tar.bz2
Document template parameter visibility and applicationPackage.
Add template docs for <parameter visibility> and the applicationPackage variable. Also add visibility to the example code and add a missing Optional marker. Change-Id: I17f70ef110b402dba317863cd2692d30ddb17981
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/docs/index.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/templates/docs/index.html b/templates/docs/index.html
index d5f6746..d127bfe 100755
--- a/templates/docs/index.html
+++ b/templates/docs/index.html
@@ -184,6 +184,15 @@
&lt;option id="dropdown" minApi="11"&gt;Dropdown&lt;/option&gt;
&lt;/parameter&gt;
+ &lt;parameter
+ id="fragmentName"
+ name="Fragment Name"
+ type="string"
+ constraints="class|unique|nonempty"
+ default="MainFragment"
+ visibility="navType != 'none'"
+ help="The name of the fragment class to create" /&gt;
+
&lt;!-- 512x512 PNG thumbnails. --&gt;
&lt;thumbs&gt;
&lt;!-- Default thumbnail. --&gt;
@@ -299,8 +308,11 @@
<dt><code>default</code></dt>
<dd>Optional. The default value for this parameter.</dd>
+ <dt><code>visibility</code></dt>
+ <dd>Optional. A FreeMarker expression that determines whether this parameter should be visible. The expression should evaluate to a boolean value (i.e. true or false).</dd>
+
<dt><code>help</code></dt>
- <dd>The help string to display to the user for this parameter.</dd>
+ <dd>Optional. The help string to display to the user for this parameter.</dd>
</dl>
@@ -642,6 +654,10 @@
<p>The Java-style Android package name for the project, e.g. <code>com.example.foo</code></p>
+<h3>applicationPackage</h3>
+
+<p>Will be the application package (i.e. the package name declared in the app manifest) if the target package for this template is not the application package. Otherwise, this parameter will be empty.</p>
+
<h3>isNewProject</h3>
<p>A boolean indicating whether or not this template is being instantiated as part of a New Project flow.</p>