diff options
author | Ben Dodson <bjdodson@google.com> | 2010-08-24 14:39:58 -0700 |
---|---|---|
committer | Ben Dodson <bjdodson@google.com> | 2010-08-24 14:39:58 -0700 |
commit | d3191f0d714a153a8dab9a391068f442edcc5ff5 (patch) | |
tree | 9cb204ff25297985aac8115f2c4dd62b6dec003e /tools/droiddoc/templates | |
parent | 920e102d796b10229c302d366104d2c86094a91a (diff) | |
download | build-d3191f0d714a153a8dab9a391068f442edcc5ff5.zip build-d3191f0d714a153a8dab9a391068f442edcc5ff5.tar.gz build-d3191f0d714a153a8dab9a391068f442edcc5ff5.tar.bz2 |
Adding android-specific customization for warning of minimum api level
Change-Id: Id211e250f3c42d0239ce9bf126a74997c8b0dc3f
Diffstat (limited to 'tools/droiddoc/templates')
-rw-r--r-- | tools/droiddoc/templates/assets/customizations.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/droiddoc/templates/assets/customizations.js b/tools/droiddoc/templates/assets/customizations.js new file mode 100644 index 0000000..26eb59f --- /dev/null +++ b/tools/droiddoc/templates/assets/customizations.js @@ -0,0 +1,11 @@ +function showApiWarning(thing, selectedLevel, minLevel) { + if (selectedLevel < minLevel) { + $("#naMessage").show().html("<div><p><strong>This " + thing + " is not available with API Level " + selectedLevel + ".</strong></p>" + + "<p>To use this " + thing + ", your application must specify API Level " + minLevel + " or higher in its manifest " + + "and be compiled against a version of the Android library that supports an equal or higher API Level. To reveal this " + + "document, change the value of the API Level filter above.</p>" + + "<p><a href='" +toRoot+ "guide/appendix/api-levels.html'>What is the API Level?</a></p></div>"); + } else { + $("#naMessage").hide(); + } +} |