diff options
author | Roman Nurik <romannurik@google.com> | 2014-02-25 18:39:00 -0500 |
---|---|---|
committer | Roman Nurik <romannurik@google.com> | 2014-02-25 18:39:00 -0500 |
commit | 2e1c26848e617254927172e7904af63c43b9987e (patch) | |
tree | b4b28d8a2ef501e80c0f1c826d0c189f0583c8ba /templates | |
parent | b1051f74be9ecc0c13921115b5ad8f3a116ec877 (diff) | |
download | sdk-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-x | templates/docs/index.html | 18 |
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 @@ <option id="dropdown" minApi="11">Dropdown</option> </parameter> + <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" /> + <!-- 512x512 PNG thumbnails. --> <thumbs> <!-- Default thumbnail. --> @@ -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> |