| 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"> | 
| Scott Main | 2e94aa2 | 2010-11-01 15:51:49 -0700 | [diff] [blame] | 104 | <div class="g-unit g-first" id="side-nav"> | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 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 | 
| Dirk Dougherty | 502c498 | 2009-12-02 18:01:16 -0800 | [diff] [blame] | 112 | def:resources_tab_nav() ?> | 
| Scott Main | 2e94aa2 | 2010-11-01 15:51:49 -0700 | [diff] [blame] | 113 | <div class="g-section g-tpl-200" id="body-content"> | 
|  | 114 | <div class="g-unit g-first" id="side-nav"> | 
| Dirk Dougherty | 502c498 | 2009-12-02 18:01:16 -0800 | [diff] [blame] | 115 | <div id="devdoc-nav"><?cs | 
|  | 116 | include:"../../../../frameworks/base/docs/html/resources/resources_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 |  | 
|  | 126 | <?cs | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 127 | def:guide_nav() ?> | 
|  | 128 | <div class="g-section g-tpl-240" id="body-content"> | 
| Scott Main | 2e94aa2 | 2010-11-01 15:51:49 -0700 | [diff] [blame] | 129 | <div class="g-unit g-first" id="side-nav"> | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 130 | <div id="devdoc-nav"><?cs | 
|  | 131 | include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?> | 
|  | 132 | </div> | 
|  | 133 | </div> <!-- end side-nav --> | 
|  | 134 | <script> | 
|  | 135 | addLoadEvent(function() { | 
|  | 136 | scrollIntoView("devdoc-nav"); | 
|  | 137 | }); | 
|  | 138 | </script> | 
|  | 139 | <?cs /def ?> | 
|  | 140 |  | 
| Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 141 | <?cs # The default side navigation for the reference docs ?><?cs | 
|  | 142 | def:default_left_nav() ?> | 
|  | 143 | <div class="g-section g-tpl-240" id="body-content"> | 
| Scott Main | 2e94aa2 | 2010-11-01 15:51:49 -0700 | [diff] [blame] | 144 | <div class="g-unit g-first" id="side-nav"> | 
| Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 145 | <div id="swapper"> | 
|  | 146 | <div id="nav-panels"> | 
|  | 147 | <div id="resize-packages-nav"> | 
|  | 148 | <div id="packages-nav"> | 
|  | 149 | <div id="index-links"><nobr> | 
|  | 150 | <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> | | 
|  | 151 | <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr> | 
|  | 152 | </div> | 
| Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 153 | <ul> | 
|  | 154 | <?cs call:package_link_list(docs.packages) ?> | 
| Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 155 | </ul><br/> | 
|  | 156 | </div> <!-- end packages --> | 
|  | 157 | </div> <!-- end resize-packages --> | 
|  | 158 | <div id="classes-nav"><?cs | 
|  | 159 | if:subcount(class.package) ?> | 
|  | 160 | <ul> | 
|  | 161 | <?cs call:list("Interfaces", class.package.interfaces) ?> | 
|  | 162 | <?cs call:list("Classes", class.package.classes) ?> | 
|  | 163 | <?cs call:list("Enums", class.package.enums) ?> | 
|  | 164 | <?cs call:list("Exceptions", class.package.exceptions) ?> | 
|  | 165 | <?cs call:list("Errors", class.package.errors) ?> | 
|  | 166 | </ul><?cs | 
|  | 167 | elif:subcount(package) ?> | 
|  | 168 | <ul> | 
|  | 169 | <?cs call:class_link_list("Interfaces", package.interfaces) ?> | 
|  | 170 | <?cs call:class_link_list("Classes", package.classes) ?> | 
|  | 171 | <?cs call:class_link_list("Enums", package.enums) ?> | 
|  | 172 | <?cs call:class_link_list("Exceptions", package.exceptions) ?> | 
|  | 173 | <?cs call:class_link_list("Errors", package.errors) ?> | 
|  | 174 | </ul><?cs | 
|  | 175 | else ?> | 
|  | 176 | <script> | 
|  | 177 | /*addLoadEvent(maxPackageHeight);*/ | 
|  | 178 | </script> | 
|  | 179 | <p style="padding:10px">Select a package to view its members</p><?cs | 
|  | 180 | /if ?><br/> | 
|  | 181 | </div><!-- end classes --> | 
|  | 182 | </div><!-- end nav-panels --> | 
|  | 183 | <div id="nav-tree" style="display:none"> | 
|  | 184 | <div id="index-links"><nobr> | 
|  | 185 | <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> | | 
|  | 186 | <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr> | 
|  | 187 | </div> | 
|  | 188 | </div><!-- end nav-tree --> | 
|  | 189 | </div><!-- end swapper --> | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 190 | </div> <!-- end side-nav --> | 
| Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 191 | <script> | 
|  | 192 | if (!isMobile) { | 
|  | 193 | $("<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"); | 
|  | 194 | chooseDefaultNav(); | 
| Dirk Dougherty | 3b1ee37 | 2009-07-29 12:25:44 -0700 | [diff] [blame] | 195 | if ($("#nav-tree").is(':visible')) { | 
|  | 196 | init_default_navtree("<?cs var:toroot ?>"); | 
|  | 197 | } else { | 
| Scott Main | 1043da9 | 2009-05-20 17:16:35 -0700 | [diff] [blame] | 198 | addLoadEvent(function() { | 
|  | 199 | scrollIntoView("packages-nav"); | 
|  | 200 | scrollIntoView("classes-nav"); | 
|  | 201 | }); | 
|  | 202 | } | 
|  | 203 | $("#swapper").css({borderBottom:"2px solid #aaa"}); | 
|  | 204 | } else { | 
|  | 205 | swapNav(); // tree view should be used on mobile | 
|  | 206 | } | 
|  | 207 | </script><?cs | 
|  | 208 | /def ?> | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 209 |  | 
|  | 210 | <?cs | 
|  | 211 | def:custom_left_nav() ?><?cs | 
|  | 212 | if:guide ?><?cs | 
|  | 213 | call:guide_nav() ?><?cs | 
| Dirk Dougherty | 502c498 | 2009-12-02 18:01:16 -0800 | [diff] [blame] | 214 | elif:resources ?><?cs | 
|  | 215 | call:resources_tab_nav() ?><?cs | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 216 | elif:sdk ?><?cs | 
|  | 217 | call:sdk_nav() ?><?cs | 
|  | 218 | else ?><?cs | 
|  | 219 | call:default_left_nav() ?><?cs | 
|  | 220 | /if ?><?cs | 
|  | 221 | /def ?> | 
|  | 222 |  | 
|  | 223 | <?cs # appears at the bottom of every page ?><?cs | 
|  | 224 | def:custom_cc_copyright() ?> | 
|  | 225 | Except as noted, this content is | 
|  | 226 | licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> | 
|  | 227 | Creative Commons Attribution 2.5</a>. For details and | 
|  | 228 | restrictions, see the <a href="<?cs var:toroot ?>license.html">Content | 
|  | 229 | License</a>.<?cs | 
|  | 230 | /def ?> | 
|  | 231 |  | 
|  | 232 | <?cs | 
|  | 233 | def:custom_copyright() ?> | 
|  | 234 | Except as noted, this content is licensed under <a | 
|  | 235 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. | 
|  | 236 | For details and restrictions, see the <a href="<?cs var:toroot ?>license.html"> | 
|  | 237 | Content License</a>.<?cs | 
|  | 238 | /def ?> | 
|  | 239 |  | 
|  | 240 | <?cs | 
|  | 241 | def:custom_footerlinks() ?> | 
|  | 242 | <p> | 
|  | 243 | <a href="http://www.android.com/terms.html">Site Terms of Service</a> - | 
|  | 244 | <a href="http://www.android.com/privacy.html">Privacy Policy</a> - | 
|  | 245 | <a href="http://www.android.com/branding.html">Brand Guidelines</a> | 
|  | 246 | </p><?cs | 
|  | 247 | /def ?> | 
|  | 248 |  | 
| Dirk Dougherty | 8a81cce | 2009-04-21 01:00:11 -0700 | [diff] [blame] | 249 | <?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] | 250 | def:custom_buildinfo() ?> | 
| Dirk Dougherty | 8a81cce | 2009-04-21 01:00:11 -0700 | [diff] [blame] | 251 | Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?> | 
|  | 252 | <?cs /def ?> |