Robert Ly | a4d2d0e | 2013-04-09 11:26:12 -0700 | [diff] [blame] | 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 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 11 | |
| 12 | <?cs |
| 13 | include:"../../../../frameworks/base/docs/html/sdk/sdk_toc.cs" ?> |
| 14 | |
| 15 | |
| 16 | </div> |
| 17 | </div> <!-- end side-nav --> |
| 18 | <?cs /def ?> |
| 19 | <?cs |
| 20 | def:resources_tab_nav() ?> |
| 21 | <div class="wrap clearfix" id="body-content"> |
| 22 | <a |
| 23 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 24 | <div id="devdoc-nav" class="scroll-pane"> |
| 25 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 26 | |
| 27 | <?cs |
| 28 | include:"../../../../frameworks/base/docs/html/resources/resources_toc.cs" ?> |
| 29 | |
| 30 | |
| 31 | </div> |
| 32 | </div> <!-- end side-nav --> |
| 33 | <script> |
| 34 | $(document).ready(function() { |
| 35 | scrollIntoView("devdoc-nav"); |
| 36 | }); |
| 37 | </script> |
| 38 | <?cs /def ?> |
| 39 | <?cs |
| 40 | def:tools_nav() ?> |
| 41 | <div class="wrap clearfix" id="body-content"> |
| 42 | <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 43 | <div id="devdoc-nav" class="scroll-pane"> |
| 44 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 45 | <?cs |
| 46 | include:"../../../../frameworks/base/docs/html/tools/tools_toc.cs" ?> |
| 47 | |
| 48 | |
| 49 | </div> |
| 50 | </div> <!-- end side-nav --> |
| 51 | <script> |
| 52 | $(document).ready(function() { |
| 53 | scrollIntoView("devdoc-nav"); |
| 54 | }); |
| 55 | </script> |
| 56 | <?cs /def ?> |
| 57 | <?cs |
| 58 | def:training_nav() ?> |
| 59 | <div class="wrap clearfix" id="body-content"> |
| 60 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 61 | <div id="devdoc-nav" class="scroll-pane"> |
| 62 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 63 | |
| 64 | |
| 65 | <?cs |
| 66 | include:"../../../../frameworks/base/docs/html/training/training_toc.cs" ?> |
| 67 | |
| 68 | |
| 69 | </div> |
| 70 | </div> <!-- end side-nav --> |
| 71 | <script> |
| 72 | $(document).ready(function() { |
| 73 | scrollIntoView("devdoc-nav"); |
| 74 | }); |
| 75 | </script> |
| 76 | <?cs /def ?> |
| 77 | <?cs |
| 78 | def:guide_nav() ?> |
| 79 | <div class="wrap clearfix" id="body-content"> |
| 80 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 81 | <div id="devdoc-nav" class="scroll-pane"> |
| 82 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 83 | |
| 84 | |
| 85 | <?cs |
| 86 | include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?> |
| 87 | |
| 88 | |
| 89 | </div> |
| 90 | </div> <!-- end side-nav --> |
| 91 | <script> |
| 92 | $(document).ready(function() { |
| 93 | scrollIntoView("devdoc-nav"); |
| 94 | }); |
| 95 | </script> |
| 96 | <?cs /def ?> |
| 97 | <?cs |
| 98 | def:design_nav() ?> |
| 99 | <div class="wrap clearfix" id="body-content"> |
| 100 | <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 101 | <div id="devdoc-nav" class="scroll-pane"> |
| 102 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 103 | |
| 104 | |
| 105 | <?cs |
| 106 | include:"../../../../frameworks/base/docs/html/design/design_toc.cs" ?> |
| 107 | |
| 108 | |
| 109 | </div> |
| 110 | </div> <!-- end side-nav --> |
| 111 | <script> |
| 112 | $(document).ready(function() { |
| 113 | scrollIntoView("devdoc-nav"); |
| 114 | }); |
| 115 | </script> |
| 116 | <?cs /def ?> |
| 117 | <?cs |
| 118 | def:distribute_nav() ?> |
| 119 | <div class="wrap clearfix" id="body-content"> |
| 120 | <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 121 | <div id="devdoc-nav" class="scroll-pane"> |
| 122 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 123 | |
| 124 | <?cs |
| 125 | include:"../../../../frameworks/base/docs/html/distribute/distribute_toc.cs" ?> |
| 126 | |
| 127 | |
| 128 | </div> |
| 129 | </div> <!-- end side-nav --> |
| 130 | <script> |
| 131 | $(document).ready(function() { |
| 132 | scrollIntoView("devdoc-nav"); |
| 133 | }); |
| 134 | </script> |
| 135 | <?cs /def ?> |
| 136 | |
| 137 | <?cs |
| 138 | def:google_nav() ?> |
| 139 | <div class="wrap clearfix" id="body-content"> |
| 140 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 141 | <div id="devdoc-nav" class="scroll-pane"> |
| 142 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 143 | |
| 144 | <?cs |
| 145 | include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?> |
| 146 | |
| 147 | |
| 148 | </div> |
| 149 | <script type="text/javascript"> |
| 150 | showGoogleRefTree(); |
| 151 | |
| 152 | </script> |
| 153 | </div> <!-- end side-nav --> |
| 154 | <script> |
| 155 | $(document).ready(function() { |
| 156 | scrollIntoView("devdoc-nav"); |
| 157 | }); |
| 158 | </script> |
| 159 | <?cs /def ?> |
| 160 | |
| 161 | <?cs |
| 162 | def:about_nav() ?> |
| 163 | <div class="wrap clearfix" id="body-content"> |
| 164 | <div class="col-3" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 165 | <div id="devdoc-nav" class="scroll-pane"> |
| 166 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 167 | |
| 168 | <?cs |
| 169 | include:"../../../../frameworks/base/docs/html/about/about_toc.cs" ?> |
| 170 | |
| 171 | |
| 172 | </div> |
| 173 | </div> <!-- end side-nav --> |
| 174 | <script> |
| 175 | $(document).ready(function() { |
| 176 | scrollIntoView("devdoc-nav"); |
| 177 | }); |
| 178 | </script> |
| 179 | <?cs /def ?> |
| 180 | <?cs |
| 181 | def:dist_more_nav() ?> |
| 182 | <div class="wrap clearfix" id="body-content"> |
| 183 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 184 | <div id="devdoc-nav" class="scroll-pane"> |
| 185 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 186 | |
| 187 | |
| 188 | <?cs |
| 189 | include:"../../../../frameworks/base/docs/html/distribute/more/more_toc.cs" ?> |
| 190 | |
| 191 | |
| 192 | </div> |
| 193 | </div> <!-- end side-nav --> |
| 194 | <script> |
| 195 | $(document).ready(function() { |
| 196 | scrollIntoView("devdoc-nav"); |
| 197 | }); |
| 198 | </script> |
| 199 | : |
| 200 | |
| 201 | <?cs /def ?> |
| 202 | |
| 203 | <?cs # The default side navigation for the reference docs ?><?cs |
| 204 | def:default_left_nav() ?> |
| 205 | <?cs if:reference.gcm || reference.gms ?> |
| 206 | <?cs call:google_nav() ?> |
| 207 | <?cs else ?> |
| 208 | <div class="wrap clearfix" id="body-content"> |
| 209 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 210 | <div id="devdoc-nav"> |
| 211 | |
| 212 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 213 | <div id="api-nav-header"> |
| 214 | <div id="api-level-toggle"> |
| 215 | <label for="apiLevelCheckbox" class="disabled">API level: </label> |
| 216 | <div class="select-wrapper"> |
| 217 | <select id="apiLevelSelector"> |
| 218 | <!-- option elements added by buildApiLevelSelector() --> |
| 219 | </select> |
| 220 | </div> |
| 221 | </div><!-- end toggle --> |
| 222 | <div id="api-nav-title">Android APIs</div> |
| 223 | </div><!-- end nav header --> |
| 224 | <script> |
| 225 | var SINCE_DATA = [ <?cs |
| 226 | each:since = since ?>'<?cs |
| 227 | var:since.name ?>'<?cs |
| 228 | if:!last(since) ?>, <?cs /if ?><?cs |
| 229 | /each |
| 230 | ?> ]; |
| 231 | buildApiLevelSelector(); |
| 232 | </script> |
| 233 | |
| 234 | <div id="swapper"> |
| 235 | <div id="nav-panels"> |
| 236 | <div id="resize-packages-nav"> |
| 237 | <div id="packages-nav" class="scroll-pane"> |
| 238 | |
| 239 | <ul> |
| 240 | <?cs call:package_link_list(docs.packages) ?> |
| 241 | </ul><br/> |
| 242 | |
| 243 | </div> <!-- end packages-nav --> |
| 244 | </div> <!-- end resize-packages --> |
| 245 | <div id="classes-nav" class="scroll-pane"> |
| 246 | |
| 247 | |
| 248 | <?cs |
| 249 | if:subcount(class.package) ?> |
| 250 | <ul> |
| 251 | <?cs call:list("Interfaces", class.package.interfaces) ?> |
| 252 | <?cs call:list("Classes", class.package.classes) ?> |
| 253 | <?cs call:list("Enums", class.package.enums) ?> |
| 254 | <?cs call:list("Exceptions", class.package.exceptions) ?> |
| 255 | <?cs call:list("Errors", class.package.errors) ?> |
| 256 | </ul><?cs |
| 257 | elif:subcount(package) ?> |
| 258 | <ul> |
| 259 | <?cs call:class_link_list("Interfaces", package.interfaces) ?> |
| 260 | <?cs call:class_link_list("Classes", package.classes) ?> |
| 261 | <?cs call:class_link_list("Enums", package.enums) ?> |
| 262 | <?cs call:class_link_list("Exceptions", package.exceptions) ?> |
| 263 | <?cs call:class_link_list("Errors", package.errors) ?> |
| 264 | </ul><?cs |
| 265 | else ?> |
| 266 | <p style="padding:10px">Select a package to view its members</p><?cs |
| 267 | /if ?><br/> |
| 268 | |
| 269 | |
| 270 | </div><!-- end classes --> |
| 271 | </div><!-- end nav-panels --> |
| 272 | <div id="nav-tree" style="display:none" class="scroll-pane"> |
| 273 | <div id="tree-list"></div> |
| 274 | </div><!-- end nav-tree --> |
| 275 | </div><!-- end swapper --> |
| 276 | <div id="nav-swap"> |
| 277 | <a class="fullscreen">fullscreen</a> |
| 278 | <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> |
| 279 | </div> |
| 280 | </div> <!-- end devdoc-nav --> |
| 281 | </div> <!-- end side-nav --> |
| 282 | <script type="text/javascript"> |
| 283 | // init fullscreen based on user pref |
| 284 | var fullscreen = readCookie("fullscreen"); |
| 285 | if (fullscreen != 0) { |
| 286 | if (fullscreen == "false") { |
| 287 | toggleFullscreen(false); |
| 288 | } else { |
| 289 | toggleFullscreen(true); |
| 290 | } |
| 291 | } |
| 292 | // init nav version for mobile |
| 293 | if (isMobile) { |
| 294 | swapNav(); // tree view should be used on mobile |
| 295 | $('#nav-swap').hide(); |
| 296 | } else { |
| 297 | chooseDefaultNav(); |
| 298 | if ($("#nav-tree").is(':visible')) { |
| 299 | init_default_navtree("<?cs var:toroot ?>"); |
| 300 | } |
| 301 | } |
| 302 | // scroll the selected page into view |
| 303 | $(document).ready(function() { |
| 304 | scrollIntoView("packages-nav"); |
| 305 | scrollIntoView("classes-nav"); |
| 306 | }); |
| 307 | </script> |
| 308 | <?cs /if ?> |
| 309 | <?cs |
| 310 | /def ?> |
| 311 | |
| 312 | <?cs |
| 313 | def:custom_left_nav() ?><?cs |
| 314 | if:fullpage ?><?cs |
| 315 | call:fullpage() ?><?cs |
| 316 | elif:guide ?><?cs |
| 317 | call:guide_nav() ?><?cs |
| 318 | elif:design ?><?cs |
| 319 | call:design_nav() ?><?cs |
| 320 | elif:training ?><?cs |
| 321 | call:training_nav() ?><?cs |
| 322 | elif:tools ?><?cs |
| 323 | call:tools_nav() ?><?cs |
| 324 | elif:google ?><?cs |
| 325 | call:google_nav() ?><?cs |
| 326 | elif:more ?><?cs |
| 327 | call:dist_more_nav() ?><?cs |
| 328 | elif:distribute ?><?cs |
| 329 | call:distribute_nav() ?><?cs |
| 330 | elif:about ?><?cs |
| 331 | call:about_nav() ?><?cs |
| 332 | else ?><?cs |
| 333 | call:default_left_nav() ?> <?cs |
| 334 | /if ?><?cs |
| 335 | /def ?> |
| 336 | |
| 337 | <?cs # appears at the bottom of every page ?><?cs |
| 338 | def:custom_cc_copyright() ?> |
| 339 | Except as noted, this content is |
| 340 | licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> |
| 341 | Creative Commons Attribution 2.5</a>. For details and |
| 342 | restrictions, see the <a href="<?cs var:toroot ?>license.html">Content |
| 343 | License</a>.<?cs |
| 344 | /def ?> |
| 345 | |
| 346 | <?cs |
| 347 | def:custom_copyright() ?> |
| 348 | Except as noted, this content is licensed under <a |
| 349 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. |
| 350 | For details and restrictions, see the <a href="<?cs var:toroot ?>license.html"> |
| 351 | Content License</a>.<?cs |
| 352 | /def ?> |
| 353 | |
| 354 | <?cs |
| 355 | def:custom_footerlinks() ?> |
| 356 | <p> |
| 357 | <a href="<?cs var:toroot ?>about/index.html">About Android</a> | |
| 358 | <a href="<?cs var:toroot ?>legal.html">Legal</a> | |
| 359 | <a href="<?cs var:toroot ?>support.html">Support</a> |
| 360 | </p><?cs |
| 361 | /def ?> |
| 362 | |
| 363 | <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs |
| 364 | |
| 365 | def:custom_buildinfo() ?><?cs |
| 366 | if:!google && !reference.gms && !reference.gcm?> |
| 367 | Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> — <?cs |
| 368 | /if ?> |
| 369 | <script src="<?cs var:toroot ?>timestamp.js" type="text/javascript"></script> |
| 370 | <script>document.write(BUILD_TIMESTAMP)</script> |
| 371 | <?cs /def ?> |
| 372 | |
| 373 | |
| 374 | |
| 375 | <?cs #------------------- s.a.c specific templating ---------------------------?> |
| 376 | |
| 377 | <?cs |
| 378 | def:sac_left_nav() ?> |
| 379 | <?cs if:devices ?> |
| 380 | <?cs call:devices_nav() ?> |
| 381 | <?cs elif:compatibility ?> |
| 382 | <?cs call:compatibility_nav() ?> |
| 383 | <?cs elif:source ?> |
| 384 | <?cs call:source_nav() ?> |
| 385 | <?cs elif:accessories ?> |
| 386 | <?cs call:accessories_nav() ?> |
| 387 | <?cs elif:reference ?> |
| 388 | <?cs call:default_left_nav() ?> |
| 389 | <?cs /if ?> |
| 390 | <?cs /def ?> |
| 391 | |
| 392 | <?cs |
| 393 | def:devices_nav() ?> |
| 394 | <div class="wrap clearfix" id="body-content"> |
| 395 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 396 | <div id="devdoc-nav" class="scroll-pane"> |
| 397 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 398 | |
| 399 | <?cs |
| 400 | include:"../../../../docs/source.android.com/src/devices/devices_toc.cs" ?> |
| 401 | |
| 402 | </div> |
| 403 | <script type="text/javascript"> |
| 404 | showTradefedRefTree(); |
| 405 | </script> |
| 406 | </div> <!-- end side-nav --> |
| 407 | <script> |
| 408 | $(document).ready(function() { |
| 409 | scrollIntoView("devdoc-nav"); |
| 410 | }); |
| 411 | </script> |
| 412 | <?cs /def ?> |
| 413 | |
| 414 | <?cs |
| 415 | def:compatibility_nav() ?> |
| 416 | <div class="wrap clearfix" id="body-content"> |
| 417 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 418 | <div id="devdoc-nav" class="scroll-pane"> |
| 419 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 420 | |
| 421 | <?cs |
| 422 | include:"../../../../docs/source.android.com/src/compatibility/compatibility_toc.cs" ?> |
| 423 | |
| 424 | </div> |
| 425 | </div> <!-- end side-nav --> |
| 426 | <script> |
| 427 | $(document).ready(function() { |
| 428 | scrollIntoView("devdoc-nav"); |
| 429 | }); |
| 430 | </script> |
| 431 | <?cs /def ?> |
| 432 | |
| 433 | <?cs |
| 434 | def:source_nav() ?> |
| 435 | <div class="wrap clearfix" id="body-content"> |
| 436 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 437 | <div id="devdoc-nav" class="scroll-pane"> |
| 438 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 439 | |
| 440 | <?cs |
| 441 | include:"../../../../docs/source.android.com/src/source/source_toc.cs" ?> |
| 442 | |
| 443 | </div> |
| 444 | </div> <!-- end side-nav --> |
| 445 | <script> |
| 446 | $(document).ready(function() { |
| 447 | scrollIntoView("devdoc-nav"); |
| 448 | }); |
| 449 | </script> |
| 450 | <?cs /def ?> |
| 451 | |
| 452 | <?cs |
| 453 | def:accessories_nav() ?> |
| 454 | <div class="wrap clearfix" id="body-content"> |
| 455 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 456 | <div id="devdoc-nav" class="scroll-pane"> |
| 457 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 458 | |
| 459 | <?cs |
| 460 | include:"../../../../docs/source.android.com/src/accessories/accessories_toc.cs" ?> |
| 461 | |
| 462 | </div> |
| 463 | </div> <!-- end side-nav --> |
| 464 | <script> |
| 465 | $(document).ready(function() { |
| 466 | scrollIntoView("devdoc-nav"); |
| 467 | }); |
| 468 | </script> |
| 469 | <?cs /def ?> |
| 470 | |
| 471 | |