1 <?cs 2 def:fullpage() ?> 3 <div id="body-content"> 4 <?cs /def ?> 5 <?cs 6 def:sdk_nav() ?> 7 <div class="wrap clearfix" id="body-content"> 8 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 9 <div id="devdoc-nav" class="scroll-pane"> 10 11 <?cs 12 include:"../../../../frameworks/base/docs/html/sdk/sdk_toc.cs" ?> 13 14 15 </div> 16 </div> <!-- end side-nav --> 17 <?cs /def ?><?cs 18 19 def:no_nav() ?> 20 <div class="wrap clearfix" id="body-content"> 21 <?cs /def ?><?cs 22 23 def:tools_nav() ?> 24 <div class="wrap clearfix" id="body-content"> 25 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 26 <div id="devdoc-nav" class="scroll-pane"> 27 <?cs 28 include:"../../../../frameworks/base/docs/html/tools/tools_toc.cs" ?> 29 30 31 </div> 32 </div> <!-- end side-nav --> 33 <script> function()34 $(document).ready(function() { 35 scrollIntoView("devdoc-nav"); 36 }); 37 </script> 38 <?cs /def ?> 39 <?cs 40 def:training_nav() ?> 41 <div class="wrap clearfix" id="body-content"> 42 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 43 <div id="devdoc-nav" class="scroll-pane"> 44 45 46 <?cs 47 include:"../../../../frameworks/base/docs/html/training/training_toc.cs" ?> 48 49 50 </div> 51 </div> <!-- end side-nav --> 52 <script> function()53 $(document).ready(function() { 54 scrollIntoView("devdoc-nav"); 55 }); 56 </script> 57 <?cs /def ?><?cs 58 59 def:googleplay_nav() ?> 60 <div class="wrap clearfix" id="body-content"> 61 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 62 <div id="devdoc-nav" class="scroll-pane"> 63 <?cs include:"../../../../frameworks/base/docs/html/distribute/googleplay/googleplay_toc.cs" ?> 64 </div> 65 </div> <!-- end side-nav --> 66 <script> function()67 $(document).ready(function() { 68 scrollIntoView("devdoc-nav"); 69 }); 70 </script> 71 <?cs /def ?><?cs 72 73 def:essentials_nav() ?> 74 <div class="wrap clearfix" id="body-content"> 75 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 76 <div id="devdoc-nav" class="scroll-pane"> 77 <?cs include:"../../../../frameworks/base/docs/html/distribute/essentials/essentials_toc.cs" ?> 78 </div> 79 </div> <!-- end side-nav --> 80 <script> function()81 $(document).ready(function() { 82 scrollIntoView("devdoc-nav"); 83 }); 84 </script> 85 <?cs /def ?><?cs 86 87 def:users_nav() ?> 88 <div class="wrap clearfix" id="body-content"> 89 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 90 <div id="devdoc-nav" class="scroll-pane"> 91 <?cs include:"../../../../frameworks/base/docs/html/distribute/users/users_toc.cs" ?> 92 </div> 93 </div> <!-- end side-nav --> 94 <script> function()95 $(document).ready(function() { 96 scrollIntoView("devdoc-nav"); 97 }); 98 </script> 99 <?cs /def ?><?cs 100 101 def:engage_nav() ?> 102 <div class="wrap clearfix" id="body-content"> 103 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 104 <div id="devdoc-nav" class="scroll-pane"> 105 <?cs include:"../../../../frameworks/base/docs/html/distribute/engage/engage_toc.cs" ?> 106 </div> 107 </div> <!-- end side-nav --> 108 <script> function()109 $(document).ready(function() { 110 scrollIntoView("devdoc-nav"); 111 }); 112 </script> 113 <?cs /def ?><?cs 114 115 def:monetize_nav() ?> 116 <div class="wrap clearfix" id="body-content"> 117 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 118 <div id="devdoc-nav" class="scroll-pane"> 119 <?cs include:"../../../../frameworks/base/docs/html/distribute/monetize/monetize_toc.cs" ?> 120 </div> 121 </div> <!-- end side-nav --> 122 <script> function()123 $(document).ready(function() { 124 scrollIntoView("devdoc-nav"); 125 }); 126 </script> 127 <?cs /def ?><?cs 128 129 def:disttools_nav() ?> 130 <div class="wrap clearfix" id="body-content"> 131 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 132 <div id="devdoc-nav" class="scroll-pane"> 133 <?cs include:"../../../../frameworks/base/docs/html/distribute/tools/disttools_toc.cs" ?> 134 </div> 135 </div> <!-- end side-nav --> 136 <script> function()137 $(document).ready(function() { 138 scrollIntoView("devdoc-nav"); 139 }); 140 </script> 141 <?cs /def ?><?cs 142 143 def:stories_nav() ?> 144 <div class="wrap clearfix" id="body-content"> 145 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 146 <div id="devdoc-nav" class="scroll-pane"> 147 <?cs include:"../../../../frameworks/base/docs/html/distribute/stories/stories_toc.cs" ?> 148 </div> 149 </div> <!-- end side-nav --> 150 <script> function()151 $(document).ready(function() { 152 scrollIntoView("devdoc-nav"); 153 }); 154 </script> 155 <?cs /def ?><?cs 156 157 def:guide_nav() ?> 158 <div class="wrap clearfix" id="body-content"> 159 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 160 <div id="devdoc-nav" class="scroll-pane"> 161 162 <?cs 163 include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?> 164 165 166 </div> 167 </div> <!-- end side-nav --> 168 <script> function()169 $(document).ready(function() { 170 scrollIntoView("devdoc-nav"); 171 }); 172 </script> 173 <?cs /def ?> 174 <?cs 175 def:design_nav() ?> 176 <div class="wrap clearfix" id="body-content"> 177 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 178 <div id="devdoc-nav" class="scroll-pane"> 179 180 181 <?cs 182 include:"../../../../frameworks/base/docs/html/design/design_toc.cs" ?> 183 184 185 </div> 186 </div> <!-- end side-nav --> 187 <script> function()188 $(document).ready(function() { 189 scrollIntoView("devdoc-nav"); 190 }); 191 </script> 192 <?cs /def ?> 193 <?cs 194 def:distribute_nav() ?> 195 <div class="wrap clearfix" id="body-content"> 196 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 197 <div id="devdoc-nav" class="scroll-pane"> 198 199 <?cs 200 include:"../../../../frameworks/base/docs/html/distribute/distribute_toc.cs" ?> 201 202 203 </div> 204 </div> <!-- end side-nav --> 205 <script> function()206 $(document).ready(function() { 207 scrollIntoView("devdoc-nav"); 208 }); 209 </script> 210 <?cs /def ?> 211 212 <?cs 213 def:samples_nav() ?> 214 <div class="wrap clearfix" id="body-content"> 215 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 216 <div id="devdoc-nav" class="scroll-pane"> 217 218 <?cs 219 include:"../../../../frameworks/base/docs/html/samples/samples_toc.cs" ?> 220 221 </div> 222 223 </div> <!-- end side-nav --> 224 <script> function()225 $(document).ready(function() { 226 scrollIntoView("devdoc-nav"); 227 }); 228 </script> 229 <?cs /def ?> 230 231 <?cs 232 def:google_nav() ?> 233 <div class="wrap clearfix" id="body-content"> 234 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 235 <div id="devdoc-nav" class="scroll-pane"> 236 237 <?cs 238 include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?> 239 240 241 </div> 242 <script type="text/javascript"> showGoogleRefTree()243 showGoogleRefTree(); 244 245 </script> 246 </div> <!-- end side-nav --> 247 <script> function()248 $(document).ready(function() { 249 scrollIntoView("devdoc-nav"); 250 }); 251 </script> 252 <?cs /def ?> 253 254 <?cs 255 def:about_nav() ?> 256 <div class="wrap clearfix" id="body-content"> 257 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 258 <div id="devdoc-nav" class="scroll-pane"> 259 260 <?cs 261 include:"../../../../frameworks/base/docs/html/about/about_toc.cs" ?> 262 263 264 </div> 265 </div> <!-- end side-nav --> 266 <script> function()267 $(document).ready(function() { 268 scrollIntoView("devdoc-nav"); 269 }); 270 </script> 271 <?cs /def ?> 272 273 274 <?cs 275 def:wear_nav() ?> 276 <div class="wrap clearfix" id="body-content"> 277 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 278 <div id="devdoc-nav" class="scroll-pane"> 279 280 <?cs 281 include:"../../../../frameworks/base/docs/html/wear/wear_toc.cs" ?> 282 283 284 </div> 285 </div> <!-- end side-nav --> 286 <script> function()287 $(document).ready(function() { 288 scrollIntoView("devdoc-nav"); 289 }); 290 </script> 291 <?cs /def ?> 292 293 <?cs # The default side navigation for the reference docs ?><?cs 294 def:default_left_nav() ?> 295 <?cs if:reference.gcm || reference.gms ?> 296 <?cs call:google_nav() ?> 297 <?cs else ?> 298 <div class="wrap clearfix" id="body-content"> 299 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 300 <div id="devdoc-nav"> 301 <div id="api-nav-header"> 302 <div id="api-level-toggle"> 303 <label for="apiLevelCheckbox" class="disabled" 304 title="Select your target API level to dim unavailable APIs">API level: </label> 305 <div class="select-wrapper"> 306 <select id="apiLevelSelector"> 307 <!-- option elements added by buildApiLevelSelector() --> 308 </select> 309 </div> 310 </div><!-- end toggle --> 311 <div id="api-nav-title">Android APIs</div> 312 </div><!-- end nav header --> 313 <script> 314 var SINCE_DATA = [ <?cs 315 each:since = since ?>'<?cs 316 var:since.name ?>'<?cs 317 if:!last(since) ?>, <?cs /if ?><?cs 318 /each 319 ?> ]; buildApiLevelSelector()320 buildApiLevelSelector(); 321 </script> 322 323 <div id="swapper"> 324 <div id="nav-panels"> 325 <div id="resize-packages-nav"> 326 <div id="packages-nav" class="scroll-pane"> 327 328 <ul> 329 <?cs call:package_link_list(docs.packages) ?> 330 </ul><br/> 331 332 </div> <!-- end packages-nav --> 333 </div> <!-- end resize-packages --> 334 <div id="classes-nav" class="scroll-pane"> 335 336 337 <?cs 338 if:subcount(class.package) ?> 339 <ul> 340 <?cs call:list("Interfaces", class.package.interfaces) ?> 341 <?cs call:list("Classes", class.package.classes) ?> 342 <?cs call:list("Enums", class.package.enums) ?> 343 <?cs call:list("Exceptions", class.package.exceptions) ?> 344 <?cs call:list("Errors", class.package.errors) ?> 345 </ul><?cs 346 elif:subcount(package) ?> 347 <ul> 348 <?cs call:class_link_list("Interfaces", package.interfaces) ?> 349 <?cs call:class_link_list("Classes", package.classes) ?> 350 <?cs call:class_link_list("Enums", package.enums) ?> 351 <?cs call:class_link_list("Exceptions", package.exceptions) ?> 352 <?cs call:class_link_list("Errors", package.errors) ?> 353 </ul><?cs 354 else ?> 355 <p style="padding:10px">Select a package to view its members</p><?cs 356 /if ?><br/> 357 358 359 </div><!-- end classes --> 360 </div><!-- end nav-panels --> 361 <div id="nav-tree" style="display:none" class="scroll-pane"> 362 <div id="tree-list"></div> 363 </div><!-- end nav-tree --> 364 </div><!-- end swapper --> 365 <div id="nav-swap"> 366 <a class="fullscreen">fullscreen</a> 367 <a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a> 368 </div> 369 </div> <!-- end devdoc-nav --> 370 </div> <!-- end side-nav --> 371 <script type="text/javascript"> 372 // init fullscreen based on user pref 373 var fullscreen = readCookie("fullscreen"); 374 if (fullscreen != 0) { 375 if (fullscreen == "false") { 376 toggleFullscreen(false); 377 } else { 378 toggleFullscreen(true); 379 } 380 } 381 // init nav version for mobile 382 if (isMobile) { 383 swapNav(); // tree view should be used on mobile 384 $('#nav-swap').hide(); 385 } else { 386 chooseDefaultNav(); 387 if ($("#nav-tree").is(':visible')) { 388 init_default_navtree("<?cs var:toroot ?>"); 389 } 390 } 391 // scroll the selected page into view function()392 $(document).ready(function() { 393 scrollIntoView("packages-nav"); 394 scrollIntoView("classes-nav"); 395 }); 396 </script> 397 <?cs /if ?> 398 <?cs 399 /def ?> 400 401 402 <?cs 403 def:header_search_widget() ?> 404 <div class="menu-container"> 405 <div class="moremenu"> 406 <div id="more-btn"></div> 407 </div> 408 <div class="morehover" id="moremenu"> 409 <div class="top"></div> 410 <div class="mid"> 411 <div class="header">Links</div> 412 <ul> 413 <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> 414 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 415 <li><a href="<?cs var:toroot ?>about/index.html">About Android</a></li> 416 </ul> 417 <div class="header">Android Sites</div> 418 <ul> 419 <li><a href="http://www.android.com">Android.com</a></li> 420 <li class="active"><a>Android Developers</a></li> 421 <li><a href="http://source.android.com">Android Open Source Project</a></li> 422 </ul> 423 424 <?cs # Include language switcher only in online docs ?> 425 <?cs if:android.whichdoc == "online" ?> 426 <div class="header">Language</div> 427 <div id="language" class="locales"> 428 <select name="language" onChange="changeLangPref(this.value, true)"> 429 <option value="en">English</option> 430 <option value="es">Español</option> 431 <option value="ja">日本語</option> 432 <option value="ko">한국어</option> 433 <option value="ru">Русский</option> 434 <option value="zh-cn">中文 (中国)</option> 435 <option value="zh-tw">中文 (台灣)</option> 436 </select> 437 </div> 438 <script type="text/javascript"> 439 <!-- 440 loadLangPref(); 441 //--> 442 </script> 443 <?cs /if ?> 444 <?cs # End of lang switcher ?> 445 <br class="clearfix" /> 446 </div><!-- end 'mid' --> 447 <div class="bottom"></div> 448 </div><!-- end 'moremenu' --> 449 450 <div class="search" id="search-container"> 451 <div class="search-inner"> 452 <div id="search-btn"></div> 453 <div class="left"></div> 454 <form onsubmit="return submit_search()"> 455 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 456 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 457 onkeydown="return search_changed(event, true, '<?cs var:toroot ?>')" 458 onkeyup="return search_changed(event, false, '<?cs var:toroot ?>')" /> 459 </form> 460 <div class="right"></div> 461 <a class="close hide">close</a> 462 <div class="left"></div> 463 <div class="right"></div> 464 </div><!-- end search-inner --> 465 </div><!-- end search-container --> 466 467 <div class="search_filtered_wrapper reference"> 468 <div class="suggest-card reference no-display"> 469 <ul class="search_filtered"> 470 </ul> 471 </div> 472 </div> 473 474 <div class="search_filtered_wrapper docs"> 475 <div class="suggest-card dummy no-display"> </div> 476 <div class="suggest-card develop no-display"> 477 <ul class="search_filtered"> 478 </ul> 479 <div class="child-card guides no-display"> 480 </div> 481 <div class="child-card training no-display"> 482 </div> 483 <div class="child-card samples no-display"> 484 </div> 485 </div> 486 <div class="suggest-card design no-display"> 487 <ul class="search_filtered"> 488 </ul> 489 </div> 490 <div class="suggest-card distribute no-display"> 491 <ul class="search_filtered"> 492 </ul> 493 </div> 494 </div> 495 </div><!-- end menu-container (search and menu widget) --> 496 <?cs /def ?> 497 498 499 500 <?cs 501 def:custom_left_nav() ?><?cs 502 if:fullpage ?><?cs 503 call:fullpage() ?><?cs 504 elif:nonavpage ?><?cs 505 call:no_nav() ?><?cs 506 elif:guide ?><?cs 507 call:guide_nav() ?><?cs 508 elif:design ?><?cs 509 call:design_nav() ?><?cs 510 elif:training ?><?cs 511 call:training_nav() ?><?cs 512 elif:tools ?><?cs 513 call:tools_nav() ?><?cs 514 elif:google ?><?cs 515 call:google_nav() ?><?cs 516 elif:samples ?><?cs 517 call:samples_nav() ?><?cs 518 elif:distribute ?><?cs 519 if:googleplay ?><?cs 520 call:googleplay_nav() ?><?cs 521 elif:essentials ?><?cs 522 call:essentials_nav() ?><?cs 523 elif:users ?><?cs 524 call:users_nav() ?><?cs 525 elif:engage ?><?cs 526 call:engage_nav() ?><?cs 527 elif:monetize ?><?cs 528 call:monetize_nav() ?><?cs 529 elif:disttools ?><?cs 530 call:disttools_nav() ?><?cs 531 elif:stories ?><?cs 532 call:stories_nav() ?><?cs 533 /if ?><?cs 534 elif:about ?><?cs 535 call:about_nav() ?><?cs 536 elif:distribute ?><?cs 537 call:distribute_nav() ?><?cs 538 elif:wear ?><?cs 539 call:wear_nav() ?><?cs 540 else ?><?cs 541 call:default_left_nav() ?> <?cs 542 /if ?><?cs 543 /def ?> 544 545 <?cs # appears at the bottom of every page ?><?cs 546 def:custom_cc_copyright() ?> 547 Except as noted, this content is 548 licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> 549 Creative Commons Attribution 2.5</a>. For details and 550 restrictions, see the <a href="<?cs var:toroot ?>license.html">Content 551 License</a>.<?cs 552 /def ?> 553 554 <?cs 555 def:custom_copyright() ?> 556 Except as noted, this content is licensed under <a 557 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 558 For details and restrictions, see the <a href="<?cs var:toroot ?>license.html"> 559 Content License</a>.<?cs 560 /def ?> 561 562 <?cs 563 def:custom_footerlinks() ?> 564 <p> 565 <a href="<?cs var:toroot ?>about/index.html">About Android</a> | 566 <a href="<?cs var:toroot ?>legal.html">Legal</a> | 567 <a href="<?cs var:toroot ?>support.html">Support</a> 568 </p><?cs 569 /def ?> 570 571 <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs 572 def:custom_buildinfo() ?><?cs 573 if:!google && !reference.gcm && !reference.gms ?> 574 Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> — <?cs 575 /if ?> 576 <script src="<?cs var:toroot ?>timestamp.js" type="text/javascript"></script> 577 <script>document.write(BUILD_TIMESTAMP)</script> 578 <?cs /def ?> 579 580