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:analyze_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/analyze/analyze_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:monetize_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/monetize/monetize_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:disttools_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/tools/disttools_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:stories_nav() ?> 158 <div class="wrap clearfix" id="body-content"> 159 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 160 <div id="devdoc-nav" class="scroll-pane"> 161 <?cs include:"../../../../frameworks/base/docs/html/distribute/stories/stories_toc.cs" ?> 162 </div> 163 </div> <!-- end side-nav --> 164 <script> function()165 $(document).ready(function() { 166 scrollIntoView("devdoc-nav"); 167 }); 168 </script> 169 <?cs /def ?><?cs 170 171 def:guide_nav() ?> 172 <div class="wrap clearfix" id="body-content"> 173 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 174 <div id="devdoc-nav" class="scroll-pane"> 175 176 <?cs 177 include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?> 178 179 180 </div> 181 </div> <!-- end side-nav --> 182 <script> function()183 $(document).ready(function() { 184 scrollIntoView("devdoc-nav"); 185 }); 186 </script> 187 <?cs /def ?> 188 <?cs 189 def:design_nav() ?> 190 <div class="wrap clearfix" id="body-content"> 191 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 192 <div id="devdoc-nav" class="scroll-pane"> 193 194 195 <?cs 196 include:"../../../../frameworks/base/docs/html/design/design_toc.cs" ?> 197 198 199 </div> 200 </div> <!-- end side-nav --> 201 <script> function()202 $(document).ready(function() { 203 scrollIntoView("devdoc-nav"); 204 }); 205 </script> 206 <?cs /def ?> 207 <?cs 208 def:distribute_nav() ?> 209 <div class="wrap clearfix" id="body-content"> 210 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 211 <div id="devdoc-nav" class="scroll-pane"> 212 213 <?cs 214 include:"../../../../frameworks/base/docs/html/distribute/distribute_toc.cs" ?> 215 216 217 </div> 218 </div> <!-- end side-nav --> 219 <script> function()220 $(document).ready(function() { 221 scrollIntoView("devdoc-nav"); 222 }); 223 </script> 224 <?cs /def ?> 225 226 <?cs 227 def:samples_nav() ?> 228 <div class="wrap clearfix" id="body-content"> 229 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 230 <div id="devdoc-nav" class="scroll-pane"> 231 232 <?cs 233 include:"../../../../frameworks/base/docs/html/samples/samples_toc.cs" ?> 234 235 </div> 236 237 </div> <!-- end side-nav --> 238 <script> function()239 $(document).ready(function() { 240 scrollIntoView("devdoc-nav"); 241 }); 242 </script> 243 <?cs /def ?> 244 245 <?cs 246 def:google_nav() ?> 247 <div class="wrap clearfix" id="body-content"> 248 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 249 <div id="devdoc-nav" class="scroll-pane"> 250 251 <?cs 252 include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?> 253 254 255 </div> 256 <script type="text/javascript"> showGoogleRefTree()257 showGoogleRefTree(); 258 259 </script> 260 </div> <!-- end side-nav --> 261 <script> function()262 $(document).ready(function() { 263 scrollIntoView("devdoc-nav"); 264 }); 265 </script> 266 <?cs /def ?> 267 268 <?cs 269 def:about_nav() ?> 270 <div class="wrap clearfix" id="body-content"> 271 <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 272 <div id="devdoc-nav" class="scroll-pane"> 273 274 <?cs 275 include:"../../../../frameworks/base/docs/html/about/about_toc.cs" ?> 276 277 278 </div> 279 </div> <!-- end side-nav --> 280 <script> function()281 $(document).ready(function() { 282 scrollIntoView("devdoc-nav"); 283 }); 284 </script> 285 <?cs /def ?> 286 287 288 <?cs 289 def:wear_nav() ?> 290 <div class="wrap clearfix" id="body-content"> 291 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 292 <div id="devdoc-nav" class="scroll-pane"> 293 294 <?cs 295 include:"../../../../frameworks/base/docs/html/wear/wear_toc.cs" ?> 296 297 298 </div> 299 </div> <!-- end side-nav --> 300 <script> function()301 $(document).ready(function() { 302 scrollIntoView("devdoc-nav"); 303 }); 304 </script> 305 <?cs /def ?> 306 307 <?cs 308 def:preview_nav() ?> 309 <div class="wrap clearfix" id="body-content"> 310 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 311 <div id="devdoc-nav" class="scroll-pane"> 312 <?cs 313 include:"../../../../frameworks/base/docs/html/preview/preview_toc.cs" ?> 314 </div> 315 </div> <!-- end side-nav --> 316 <script> function()317 $(document).ready(function() { 318 scrollIntoView("devdoc-nav"); 319 }); 320 </script> 321 <?cs /def ?> 322 323 <?cs # The default side navigation for the reference docs ?><?cs 324 def:default_left_nav() ?> 325 <?cs if:reference.gcm || reference.gms ?> 326 <?cs call:google_nav() ?> 327 <?cs else ?> 328 <div class="wrap clearfix" id="body-content"> 329 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 330 <div id="devdoc-nav"> 331 <div id="api-nav-header"> 332 <div id="api-level-toggle"> 333 <label for="apiLevelCheckbox" class="disabled" 334 title="Select your target API level to dim unavailable APIs">API level: </label> 335 <div class="select-wrapper"> 336 <select id="apiLevelSelector"> 337 <!-- option elements added by buildApiLevelSelector() --> 338 </select> 339 </div> 340 </div><!-- end toggle --> 341 <div id="api-nav-title">Android APIs</div> 342 </div><!-- end nav header --> 343 <script> 344 var SINCE_DATA = [ <?cs 345 each:since = since ?>'<?cs 346 var:since.name ?>'<?cs 347 if:!last(since) ?>, <?cs /if ?><?cs 348 /each 349 ?> ]; buildApiLevelSelector()350 buildApiLevelSelector(); 351 </script> 352 353 <div id="swapper"> 354 <div id="nav-panels"> 355 <div id="resize-packages-nav"> 356 <div id="packages-nav" class="scroll-pane"> 357 358 <ul> 359 <?cs call:package_link_list(docs.packages) ?> 360 </ul><br/> 361 362 </div> <!-- end packages-nav --> 363 </div> <!-- end resize-packages --> 364 <div id="classes-nav" class="scroll-pane"> 365 366 367 <?cs 368 if:subcount(class.package) ?> 369 <ul> 370 <?cs call:list("Annotations", class.package.annotations) ?> 371 <?cs call:list("Interfaces", class.package.interfaces) ?> 372 <?cs call:list("Classes", class.package.classes) ?> 373 <?cs call:list("Enums", class.package.enums) ?> 374 <?cs call:list("Exceptions", class.package.exceptions) ?> 375 <?cs call:list("Errors", class.package.errors) ?> 376 </ul><?cs 377 elif:subcount(package) ?> 378 <ul> 379 <?cs call:class_link_list("Annotations", package.annotations) ?> 380 <?cs call:class_link_list("Interfaces", package.interfaces) ?> 381 <?cs call:class_link_list("Classes", package.classes) ?> 382 <?cs call:class_link_list("Enums", package.enums) ?> 383 <?cs call:class_link_list("Exceptions", package.exceptions) ?> 384 <?cs call:class_link_list("Errors", package.errors) ?> 385 </ul><?cs 386 else ?> 387 <p style="padding:10px">Select a package to view its members</p><?cs 388 /if ?><br/> 389 390 391 </div><!-- end classes --> 392 </div><!-- end nav-panels --> 393 <div id="nav-tree" style="display:none" class="scroll-pane"> 394 <div id="tree-list"></div> 395 </div><!-- end nav-tree --> 396 </div><!-- end swapper --> 397 <div id="nav-swap"> 398 <a class="fullscreen">fullscreen</a> 399 <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> 400 </div> 401 </div> <!-- end devdoc-nav --> 402 </div> <!-- end side-nav --> 403 <script type="text/javascript"> 404 // init fullscreen based on user pref 405 var fullscreen = readCookie("fullscreen"); 406 if (fullscreen != 0) { 407 if (fullscreen == "false") { 408 toggleFullscreen(false); 409 } else { 410 toggleFullscreen(true); 411 } 412 } 413 // init nav version for mobile 414 if (isMobile) { 415 swapNav(); // tree view should be used on mobile 416 $('#nav-swap').hide(); 417 } else { 418 chooseDefaultNav(); 419 if ($("#nav-tree").is(':visible')) { 420 init_default_navtree("<?cs var:toroot ?>"); 421 } 422 } 423 // scroll the selected page into view function()424 $(document).ready(function() { 425 scrollIntoView("packages-nav"); 426 scrollIntoView("classes-nav"); 427 }); 428 </script> 429 <?cs /if ?> 430 <?cs 431 /def ?> 432 433 434 <?cs 435 def:header_search_widget() ?> 436 <div class="menu-container"> 437 <div class="moremenu"> 438 <div id="more-btn"></div> 439 </div> 440 <div class="morehover" id="moremenu"> 441 <div class="top"></div> 442 <div class="mid"> 443 <div class="header">Links</div> 444 <ul> 445 <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> 446 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 447 <li><a href="<?cs var:toroot ?>about/index.html">About Android</a></li> 448 </ul> 449 <div class="header">Android Sites</div> 450 <ul> 451 <li><a href="http://www.android.com">Android.com</a></li> 452 <li class="active"><a>Android Developers</a></li> 453 <li><a href="http://source.android.com">Android Open Source Project</a></li> 454 </ul> 455 456 <?cs # Include language switcher only in online docs ?> 457 <?cs if:android.whichdoc == "online" ?> 458 <div class="header">Language</div> 459 <div id="language" class="locales"> 460 <select name="language" onChange="changeLangPref(this.value, true)"> 461 <option value="en">English</option> 462 <option value="es">Español</option> 463 <option value="ja">日本語</option> 464 <option value="ko">한국어</option> 465 <option value="ru">Русский</option> 466 <option value="zh-cn">中文(简体)</option> 467 <option value="zh-tw">中文(繁體)</option> 468 </select> 469 </div> 470 <script type="text/javascript"> 471 <!-- 472 loadLangPref(); 473 //--> 474 </script> 475 <?cs /if ?> 476 <?cs # End of lang switcher ?> 477 <br class="clearfix" /> 478 </div><!-- end 'mid' --> 479 <div class="bottom"></div> 480 </div><!-- end 'moremenu' --> 481 482 <div class="search" id="search-container"> 483 <div class="search-inner"> 484 <div id="search-btn"></div> 485 <div class="left"></div> 486 <form onsubmit="return submit_search()"> 487 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 488 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 489 onkeydown="return search_changed(event, true, '<?cs var:toroot ?>')" 490 onkeyup="return search_changed(event, false, '<?cs var:toroot ?>')" /> 491 </form> 492 <div class="right"></div> 493 <a class="close hide">close</a> 494 <div class="left"></div> 495 <div class="right"></div> 496 </div><!-- end search-inner --> 497 </div><!-- end search-container --> 498 499 <div class="search_filtered_wrapper reference"> 500 <div class="suggest-card reference no-display"> 501 <ul class="search_filtered"> 502 </ul> 503 </div> 504 </div> 505 506 <div class="search_filtered_wrapper docs"> 507 <div class="suggest-card dummy no-display"> </div> 508 <div class="suggest-card develop no-display"> 509 <ul class="search_filtered"> 510 </ul> 511 <div class="child-card guides no-display"> 512 </div> 513 <div class="child-card training no-display"> 514 </div> 515 <div class="child-card samples no-display"> 516 </div> 517 </div> 518 <div class="suggest-card design no-display"> 519 <ul class="search_filtered"> 520 </ul> 521 </div> 522 <div class="suggest-card distribute no-display"> 523 <ul class="search_filtered"> 524 </ul> 525 </div> 526 </div> 527 </div><!-- end menu-container (search and menu widget) --> 528 <?cs /def ?> 529 530 531 532 <?cs 533 def:custom_left_nav() ?><?cs 534 if:fullpage ?><?cs 535 call:fullpage() ?><?cs 536 elif:nonavpage ?><?cs 537 call:no_nav() ?><?cs 538 elif:guide ?><?cs 539 call:guide_nav() ?><?cs 540 elif:design ?><?cs 541 call:design_nav() ?><?cs 542 elif:training ?><?cs 543 call:training_nav() ?><?cs 544 elif:tools ?><?cs 545 call:tools_nav() ?><?cs 546 elif:google ?><?cs 547 call:google_nav() ?><?cs 548 elif:samples ?><?cs 549 call:samples_nav() ?><?cs 550 elif:distribute ?><?cs 551 if:googleplay ?><?cs 552 call:googleplay_nav() ?><?cs 553 elif:essentials ?><?cs 554 call:essentials_nav() ?><?cs 555 elif:users ?><?cs 556 call:users_nav() ?><?cs 557 elif:engage ?><?cs 558 call:engage_nav() ?><?cs 559 elif:monetize ?><?cs 560 call:monetize_nav() ?><?cs 561 elif:analyze ?><?cs 562 call:analyze_nav() ?><?cs 563 elif:disttools ?><?cs 564 call:disttools_nav() ?><?cs 565 elif:stories ?><?cs 566 call:stories_nav() ?><?cs 567 /if ?><?cs 568 elif:about ?><?cs 569 call:about_nav() ?><?cs 570 elif:distribute ?><?cs 571 call:distribute_nav() ?><?cs 572 elif:wear ?><?cs 573 call:wear_nav() ?><?cs 574 elif:preview ?><?cs 575 call:preview_nav() ?><?cs 576 else ?><?cs 577 call:default_left_nav() ?> <?cs 578 /if ?><?cs 579 /def ?> 580 581 <?cs # appears at the bottom of every page ?><?cs 582 def:custom_cc_copyright() ?> 583 Except as noted, this content is 584 licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> 585 Creative Commons Attribution 2.5</a>. For details and 586 restrictions, see the <a href="<?cs var:toroot ?>license.html">Content 587 License</a>.<?cs 588 /def ?> 589 590 <?cs 591 def:custom_copyright() ?> 592 Except as noted, this content is licensed under <a 593 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 594 For details and restrictions, see the <a href="<?cs var:toroot ?>license.html"> 595 Content License</a>.<?cs 596 /def ?> 597 598 <?cs 599 def:custom_footerlinks() ?> 600 <p> 601 <a href="<?cs var:toroot ?>about/index.html">About Android</a> | 602 <a href="<?cs var:toroot ?>legal.html">Legal</a> | 603 <a href="<?cs var:toroot ?>support.html">Support</a> 604 </p><?cs 605 /def ?> 606 607 <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs 608 def:custom_buildinfo() ?><?cs 609 if:!google && !reference.gcm && !reference.gms ?> 610 Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> — <?cs 611 /if ?> 612 <script src="<?cs var:toroot ?>timestamp.js" type="text/javascript"></script> 613 <script>document.write(BUILD_TIMESTAMP)</script> 614 <?cs /def ?> 615 616