aboutsummaryrefslogtreecommitdiffstats
path: root/templates/docs
Commit message (Collapse)AuthorAgeFilesLines
* Document template parameter visibility and applicationPackage.Roman Nurik2014-02-251-1/+17
| | | | | | | | 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
* Add documentation of module constraintJosiah Gaskin2014-02-031-0/+1
| | | | | | | This change adds documentation for the module constraint added in https://android-review.googlesource.com/#/c/80795/ Change-Id: I68d773b074945d4db00a886fdc04ad658624b112
* Update app template documentation.Roman Nurik2014-02-033-66/+231
| | | | | | | | | Add support for template format 4, as well as some missing built-in functions and begin documenting built-in parameters. Also improve left nav for the template docs. Finally, update the examples to better align with recent changes to the templates. Change-Id: Ib2b64f55b589750feb82c78ac8c46c88c458eaf5
* 41681: "class|unique|nonempty" contraint doesn't check uniquenessTor Norbye2012-12-201-1/+1
| | | | | | Also added unique constraint on some of the activity templates. Change-Id: I2af181d9d2d716505c80bb4f487920166594625f
* 37497: Templates should escape string literals in resource filesTor Norbye2012-09-181-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | If the user enters an activity title like "Android's Tools" in the new template wizard, an invalid strings.xml file is generated, since the apostrophe is not properly escaped. To fix this, there's a new string conversion method in the template engine, "escapeXmlString", which will perform all the necessary conversions. It also adds two other XML escaping functions: one to escape text to be suitable for XML attribute values, and one to be suitable for XML text values. Finally, when verifying this, I discovered that if I inserted ampersands in the MasterDetail template, I ended up with errors in various places there a filename was derived from the input string. To help make this work better, there's also a new "extractLetters" method which pulls all the characters out of a string (effectively stripping whitespace and punctuation). In addition to the above 4 new string conversion methods, the templates have been updated to use them, and the template format documentation updated. Change-Id: I4d4e854ab78d63bc86b8eb0fb9d92246534615e7
* Update ADT template format docs to include additional built-in functions.Roman Nurik2012-09-121-2/+48
| | | | | | | | | Specifically, add docs for: - camelCaseToUnderscore - classToResource (new) - underscoreToCamelCase Change-Id: I2d13ea69828f8002cd236054d32888cc7361260e
* Add HTML documentation for ADT templates.Roman Nurik2012-08-307-0/+936
Change-Id: I7e565ebec48a489f880f556c5f990ff0d0380334