The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | <?cs # This default template file is meant to be replaced. ?> |
| 2 | <?cs # Use the -tempatedir arg to javadoc to set your own directory with a replacement for this file in it. ?> |
| 3 | |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 4 | |
| 5 | <?cs # The default search box that goes in the header ?><?cs |
| 6 | def:default_search_box() ?> |
| 7 | <div id="search" > |
| 8 | <div id="searchForm"> |
| 9 | <form accept-charset="utf-8" class="gsc-search-box" |
| 10 | onsubmit="return submit_search()"> |
| 11 | <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody> |
| 12 | <tr> |
| 13 | <td class="gsc-input"> |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 14 | <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off" |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 15 | title="search developer docs" name="q" |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 16 | value="search developer docs" |
| 17 | onFocus="search_focus_changed(this, true)" |
| 18 | onBlur="search_focus_changed(this, false)" |
| 19 | onkeydown="return search_changed(event, true, '<?cs var:toroot?>')" |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 20 | onkeyup="return search_changed(event, false, '<?cs var:toroot?>')" /> |
| 21 | <div id="search_filtered_div" class="no-display"> |
| 22 | <table id="search_filtered" cellspacing=0> |
| 23 | </table> |
| 24 | </div> |
| 25 | </td> |
| 26 | <td class="gsc-search-button"> |
| 27 | <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" /> |
| 28 | </td> |
| 29 | <td class="gsc-clear-button"> |
| 30 | <div title="clear results" class="gsc-clear-button"> </div> |
| 31 | </td> |
| 32 | </tr></tbody> |
| 33 | </table> |
| 34 | </form> |
| 35 | </div><!-- searchForm --> |
| 36 | </div><!-- search --><?cs |
| 37 | /def ?> |
| 38 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 39 | <?cs |
| 40 | def:custom_masthead() ?> |
| 41 | <div id="header"> |
| 42 | <div id="headerLeft"> |
| 43 | <a href="<?cs var:toroot ?>index.html" tabindex="-1"><img |
| 44 | src="<?cs var:toroot ?>assets/images/bg_logo.png" alt="Android Developers" /></a> |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 45 | <?cs include:"header_tabs.cs" ?> <?cs # The links are extracted so we can better manage localization ?> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 46 | </div> |
| 47 | <div id="headerRight"> |
| 48 | <div id="headerLinks"> |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 49 | <?cs if:template.showLanguageMenu ?> |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 50 | <img src="<?cs var:toroot ?>assets/images/icon_world.jpg" alt="Language:" /> |
| 51 | <span id="language"> |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 52 | <select name="language" onChange="changeLangPref(this.value, true)"> |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 53 | <option value="en">English </option> |
| 54 | <option value="ja">日本語</option> |
| 55 | <?cs # |
| 56 | <option value="de">Deutsch</option> |
| 57 | <option value="es">Español</option> |
| 58 | <option value="fr">Français</option> |
| 59 | <option value="it">Italiano</option> |
| 60 | <option value="zh-CN">中文 (简体)</option> |
| 61 | <option value="zh-TW">中文 (繁體)</option> |
| 62 | ?> |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 63 | </select> |
| 64 | <script type="text/javascript"> |
| 65 | <!-- |
| 66 | loadLangPref(); |
| 67 | //--> |
| 68 | </script> |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 69 | </span> |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 70 | <?cs /if ?> |
| 71 | <a href="http://www.android.com">Android.com</a> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 72 | </div><?cs |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 73 | call:default_search_box() ?><?cs |
| 74 | if:reference ?> |
| 75 | <div id="api-level-toggle"> |
Scott Main | 9b5fdb9 | 2009-10-27 15:09:15 -0700 | [diff] [blame] | 76 | <input type="checkbox" id="apiLevelCheckbox" onclick="toggleApiLevelSelector(this)" /> |
| 77 | <label for="apiLevelCheckbox" class="disabled">Filter by API Level: </label> |
| 78 | <select id="apiLevelSelector"> |
| 79 | <!-- option elements added by buildApiLevelSelector() --> |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 80 | </select> |
| 81 | </div> |
| 82 | <script> |
| 83 | var SINCE_DATA = [ <?cs |
| 84 | each:since = since ?>'<?cs |
| 85 | var:since.name ?>'<?cs |
| 86 | if:!last(since) ?>, <?cs /if ?><?cs |
| 87 | /each |
| 88 | ?> ]; |
Scott Main | 9b5fdb9 | 2009-10-27 15:09:15 -0700 | [diff] [blame] | 89 | buildApiLevelSelector(); |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 90 | </script><?cs |
| 91 | /if ?> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 92 | </div><!-- headerRight --> |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 93 | <script type="text/javascript"> |
| 94 | <!-- |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 95 | changeTabLang(getLangPref()); |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 96 | //--> |
| 97 | </script> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 98 | </div><!-- header --><?cs |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 99 | /def ?> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 100 | |
| 101 | <?cs |
| 102 | def:sdk_nav() ?> |
| 103 | <div class="g-section g-tpl-240" id="body-content"> |
| 104 | <div class="g-unit g-first not-resizable" id="side-nav"> |
| 105 | <div id="devdoc-nav"><?cs |
| 106 | include:"../../../../frameworks/base/docs/html/sdk/sdk_toc.cs" ?> |
| 107 | </div> |
| 108 | </div> <!-- end side-nav --> |
| 109 | <?cs /def ?> |
| 110 | |
| 111 | <?cs |
| 112 | def:guide_nav() ?> |
| 113 | <div class="g-section g-tpl-240" id="body-content"> |
| 114 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 115 | <div id="devdoc-nav"><?cs |
| 116 | include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?> |
| 117 | </div> |
| 118 | </div> <!-- end side-nav --> |
| 119 | <script> |
| 120 | addLoadEvent(function() { |
| 121 | scrollIntoView("devdoc-nav"); |
| 122 | }); |
| 123 | </script> |
| 124 | <?cs /def ?> |
| 125 | |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 126 | <?cs # The default side navigation for the reference docs ?><?cs |
| 127 | def:default_left_nav() ?> |
| 128 | <div class="g-section g-tpl-240" id="body-content"> |
| 129 | <div class="g-unit g-first side-nav-resizable" id="side-nav"> |
| 130 | <div id="swapper"> |
| 131 | <div id="nav-panels"> |
| 132 | <div id="resize-packages-nav"> |
| 133 | <div id="packages-nav"> |
| 134 | <div id="index-links"><nobr> |
| 135 | <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> | |
| 136 | <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr> |
| 137 | </div> |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 138 | <ul> |
| 139 | <?cs call:package_link_list(docs.packages) ?> |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 140 | </ul><br/> |
| 141 | </div> <!-- end packages --> |
| 142 | </div> <!-- end resize-packages --> |
| 143 | <div id="classes-nav"><?cs |
| 144 | if:subcount(class.package) ?> |
| 145 | <ul> |
| 146 | <?cs call:list("Interfaces", class.package.interfaces) ?> |
| 147 | <?cs call:list("Classes", class.package.classes) ?> |
| 148 | <?cs call:list("Enums", class.package.enums) ?> |
| 149 | <?cs call:list("Exceptions", class.package.exceptions) ?> |
| 150 | <?cs call:list("Errors", class.package.errors) ?> |
| 151 | </ul><?cs |
| 152 | elif:subcount(package) ?> |
| 153 | <ul> |
| 154 | <?cs call:class_link_list("Interfaces", package.interfaces) ?> |
| 155 | <?cs call:class_link_list("Classes", package.classes) ?> |
| 156 | <?cs call:class_link_list("Enums", package.enums) ?> |
| 157 | <?cs call:class_link_list("Exceptions", package.exceptions) ?> |
| 158 | <?cs call:class_link_list("Errors", package.errors) ?> |
| 159 | </ul><?cs |
| 160 | else ?> |
| 161 | <script> |
| 162 | /*addLoadEvent(maxPackageHeight);*/ |
| 163 | </script> |
| 164 | <p style="padding:10px">Select a package to view its members</p><?cs |
| 165 | /if ?><br/> |
| 166 | </div><!-- end classes --> |
| 167 | </div><!-- end nav-panels --> |
| 168 | <div id="nav-tree" style="display:none"> |
| 169 | <div id="index-links"><nobr> |
| 170 | <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> | |
| 171 | <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr> |
| 172 | </div> |
| 173 | </div><!-- end nav-tree --> |
| 174 | </div><!-- end swapper --> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 175 | </div> <!-- end side-nav --> |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 176 | <script> |
| 177 | if (!isMobile) { |
| 178 | $("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav"); |
| 179 | chooseDefaultNav(); |
Dirk Dougherty | 3b1ee37 | 2009-07-29 12:25:44 -0700 | [diff] [blame] | 180 | if ($("#nav-tree").is(':visible')) { |
| 181 | init_default_navtree("<?cs var:toroot ?>"); |
| 182 | } else { |
Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 183 | addLoadEvent(function() { |
| 184 | scrollIntoView("packages-nav"); |
| 185 | scrollIntoView("classes-nav"); |
| 186 | }); |
| 187 | } |
| 188 | $("#swapper").css({borderBottom:"2px solid #aaa"}); |
| 189 | } else { |
| 190 | swapNav(); // tree view should be used on mobile |
| 191 | } |
| 192 | </script><?cs |
| 193 | /def ?> |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 194 | |
| 195 | <?cs |
| 196 | def:custom_left_nav() ?><?cs |
| 197 | if:guide ?><?cs |
| 198 | call:guide_nav() ?><?cs |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 199 | elif:sdk ?><?cs |
| 200 | call:sdk_nav() ?><?cs |
| 201 | else ?><?cs |
| 202 | call:default_left_nav() ?><?cs |
| 203 | /if ?><?cs |
| 204 | /def ?> |
| 205 | |
| 206 | <?cs # appears at the bottom of every page ?><?cs |
| 207 | def:custom_cc_copyright() ?> |
| 208 | Except as noted, this content is |
| 209 | licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> |
| 210 | Creative Commons Attribution 2.5</a>. For details and |
| 211 | restrictions, see the <a href="<?cs var:toroot ?>license.html">Content |
| 212 | License</a>.<?cs |
| 213 | /def ?> |
| 214 | |
| 215 | <?cs |
| 216 | def:custom_copyright() ?> |
| 217 | Except as noted, this content is licensed under <a |
| 218 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. |
| 219 | For details and restrictions, see the <a href="<?cs var:toroot ?>license.html"> |
| 220 | Content License</a>.<?cs |
| 221 | /def ?> |
| 222 | |
| 223 | <?cs |
| 224 | def:custom_footerlinks() ?> |
| 225 | <p> |
| 226 | <a href="http://www.android.com/terms.html">Site Terms of Service</a> - |
| 227 | <a href="http://www.android.com/privacy.html">Privacy Policy</a> - |
| 228 | <a href="http://www.android.com/branding.html">Brand Guidelines</a> |
| 229 | </p><?cs |
| 230 | /def ?> |
| 231 | |
Dirk Dougherty | 8a81cce | 2009-04-21 01:00:11 -0700 | [diff] [blame] | 232 | <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 233 | def:custom_buildinfo() ?> |
Dirk Dougherty | 8a81cce | 2009-04-21 01:00:11 -0700 | [diff] [blame] | 234 | Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?> |
| 235 | <?cs /def ?> |