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 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"> 14 <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off" 15 title="search developer docs" name="q" 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?>')" 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 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> 45 <?cs include:"header_tabs.cs" ?> <?cs # The links are extracted so we can better manage localization ?> 46 </div> 47 <div id="headerRight"> 48 <div id="headerLinks"> 49 <?cs if:template.showLanguageMenu ?> 50 <img src="<?cs var:toroot ?>assets/images/icon_world.jpg" alt="Language:" /> 51 <span id="language"> 52 <select name="language" onChange="changeLangPref(this.value, true)"> 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 ?> 63 </select> 64 <script type="text/javascript"> 65 <!-- 66 loadLangPref(); 67 //--> 68 </script> 69 </span> 70 <?cs /if ?> 71 <a href="http://www.android.com">Android.com</a> 72 </div><?cs 73 call:default_search_box() ?><?cs 74 if:reference ?> 75 <div id="api-level-toggle"> 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() --> 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 ?> ]; buildApiLevelSelector()89 buildApiLevelSelector(); 90 </script><?cs 91 /if ?> 92 </div><!-- headerRight --> 93 <script type="text/javascript"> 94 <!-- 95 changeTabLang(getLangPref()); 96 //--> 97 </script> 98 </div><!-- header --><?cs 99 /def ?> 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" 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:resources_tab_nav() ?> 113 <div class="g-section g-tpl-200" id="body-content"> 114 <div class="g-unit g-first" id="side-nav"> 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 127 def:guide_nav() ?> 128 <div class="g-section g-tpl-240" id="body-content"> 129 <div class="g-unit g-first" id="side-nav"> 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 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"> 144 <div class="g-unit g-first" id="side-nav"> 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> 153 <ul> 154 <?cs call:package_link_list(docs.packages) ?> 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 --> 190 </div> <!-- end side-nav --> 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(); 195 if ($("#nav-tree").is(':visible')) { 196 init_default_navtree("<?cs var:toroot ?>"); 197 } else { 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 ?> 209 210 <?cs 211 def:custom_left_nav() ?><?cs 212 if:guide ?><?cs 213 call:guide_nav() ?><?cs 214 elif:resources ?><?cs 215 call:resources_tab_nav() ?><?cs 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 249 <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs 250 def:custom_buildinfo() ?> 251 Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?> 252 <?cs /def ?> 253