1 <?cs def:body_content_wrap_start() ?> 2 <div class="wrap clearfix" id="body-content"> 3 <?cs /def ?> 4 5 <?cs def:fullpage() ?> 6 <div id="body-content"> 7 <div> 8 <?cs /def ?> 9 10 <?cs # The default side navigation for the reference docs ?> 11 <?cs def:reference_default_nav() ?> 12 <!-- Fullscreen toggler --> 13 <button data-fullscreen class="dac-nav-fullscreen"> 14 <i class="dac-sprite dac-fullscreen"></i> 15 </button> 16 dacFullscreen()17 <script>$('[data-fullscreen]').dacFullscreen();</script> 18 <!-- End: Fullscreen toggler --> 19 20 <?cs if:reference.gcm || reference.gms ?> 21 <?cs include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?> 22 <script type="text/javascript"> showGoogleRefTree()23 showGoogleRefTree(); 24 </script> 25 <?cs else ?> 26 <div id="devdoc-nav"> 27 <div id="api-nav-header"> 28 <div id="api-level-toggle"> 29 <label for="apiLevelCheckbox" class="disabled" 30 title="Select your target API level to dim unavailable APIs">API level: </label> 31 <div class="select-wrapper"> 32 <select id="apiLevelSelector"> 33 <!-- option elements added by buildApiLevelSelector() --> 34 </select> 35 </div> 36 </div><!-- end toggle --> 37 <div id="api-nav-title">Android APIs</div> 38 </div><!-- end nav header --> 39 <script> 40 var SINCE_DATA = [ <?cs 41 each:since = since ?>'<?cs 42 var:since.name ?>'<?cs 43 if:!last(since) ?>, <?cs /if ?><?cs 44 /each 45 ?> ]; buildApiLevelSelector()46 buildApiLevelSelector(); 47 </script> 48 49 <div class="dac-reference-nav" data-reference-tree> 50 <ul class="dac-reference-nav-list" data-reference-namespaces> 51 <?cs call:package_link_list(docs.packages) ?> 52 </ul> 53 54 <?cs if:subcount(class.package) ?> 55 <ul data-reference-resources> 56 <?cs call:list("Annotations", class.package.annotations) ?> 57 <?cs call:list("Interfaces", class.package.interfaces) ?> 58 <?cs call:list("Classes", class.package.classes) ?> 59 <?cs call:list("Enums", class.package.enums) ?> 60 <?cs call:list("Exceptions", class.package.exceptions) ?> 61 <?cs call:list("Errors", class.package.errors) ?> 62 </ul> 63 <?cs elif:subcount(package) ?> 64 <ul data-reference-resources> 65 <?cs call:class_link_list("Annotations", package.annotations) ?> 66 <?cs call:class_link_list("Interfaces", package.interfaces) ?> 67 <?cs call:class_link_list("Classes", package.classes) ?> 68 <?cs call:class_link_list("Enums", package.enums) ?> 69 <?cs call:class_link_list("Exceptions", package.exceptions) ?> 70 <?cs call:class_link_list("Errors", package.errors) ?> 71 </ul> 72 <?cs /if ?> 73 </div> 74 </div> 75 <?cs /if ?> 76 <?cs /def ?> 77 78 <?cs 79 def:ndk_nav() ?> 80 <div class="wrap clearfix" id="body-content"><div class="cols"> 81 <div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 82 <?cs call:mobile_nav_toggle() ?> 83 <div class="dac-toggle-content" id="devdoc-nav"> 84 <div class="scroll-pane"> 85 <?cs 86 if:guide ?><?cs include:"../../../../frameworks/base/docs/html/ndk/guides/guides_toc.cs" ?><?cs 87 elif:reference ?><?cs include:"../../../../frameworks/base/docs/html/ndk/reference/reference_toc.cs" ?><?cs 88 elif:downloads ?><?cs include:"../../../../frameworks/base/docs/html/ndk/downloads/downloads_toc.cs" ?><?cs 89 elif:samples ?><?cs include:"../../../../frameworks/base/docs/html/ndk/samples/samples_toc.cs" ?><?cs 90 /if ?> 91 </div> 92 </div> 93 </div> <!-- end side-nav --> 94 <?cs /def ?> 95 96 <?cs def:header_search_widget() ?> 97 <form data-search class="dac-header-search"> 98 <button class="dac-header-search-close" data-search-close> 99 <i class="dac-sprite dac-back-arrow"></i> 100 </button> 101 102 <div class="dac-header-search-inner"> 103 <i class="dac-sprite dac-search-white dac-header-search-icon"></i> 104 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" class="dac-header-search-input" placeholder="Search" /> 105 <button class="dac-header-search-clear dac-hidden" data-search-clear> 106 <i class="dac-sprite dac-close-black"></i> 107 </button> 108 </div> 109 </form> 110 <?cs /def ?> 111 112 <?cs def:search_results() ?> 113 <div id="search-results" class="dac-search-results"> 114 <div id="dac-search-results-history" class="dac-search-results-history"> 115 <div class="wrap dac-search-results-history-wrap"> 116 <div class="cols"> 117 <div class="col-1of2 col-tablet-1of2 col-mobile-1of1"> 118 <h2>Most visited</h2> 119 <div class="resource-flow-layout" data-history-query="history:most/visited" data-maxresults="3" data-cardsizes="18x2"></div> 120 </div> 121 122 <div class="col-1of2 col-tablet-1of2 col-mobile-1of1"> 123 <h2>Recently visited</h2> 124 <div class="resource-flow-layout cols" data-history-query="history:recent" data-allow-duplicates="true" data-maxresults="3" data-cardsizes="18x2"></div> 125 </div> 126 </div> 127 </div> 128 </div> 129 130 <div id="dac-search-results-content" class="dac-search-results-content"> 131 <div class="dac-search-results-metadata wrap"> 132 <div class="dac-search-results-for"> 133 <h2>Results for <span id="search-results-for"></span></h2> 134 </div> 135 136 <div id="dac-search-results-hero"></div> 137 138 <div class="dac-search-results-hero cols"> 139 <div id="dac-search-results-reference" class="col-3of6 col-tablet-1of2 col-mobile-1of1"> 140 <div class="suggest-card reference no-display"> 141 <ul class="dac-search-results-reference"> 142 </ul> 143 </div> 144 </div> 145 <div id="dac-custom-search-results"></div> 146 </div> 147 </div> 148 149 </div> 150 </div> 151 <?cs /def ?> 152 153 <?cs def:custom_left_nav() ?> 154 <?cs if:(!fullpage && !nonavpage) || forcelocalnav ?> 155 <a class="dac-nav-back-button dac-swap-section dac-up dac-no-anim" data-swap-button href="javascript:;"> 156 <i class="dac-sprite dac-nav-back"></i> <span class="dac-nav-back-title">Back</span> 157 </a> 158 <div class="dac-nav-sub dac-swap-section dac-right dac-active" itemscope itemtype="http://schema.org/SiteNavigationElement"> 159 <?cs if:ndk ?> 160 <?cs if:guide ?> 161 <?cs include:"../../../../frameworks/base/docs/html/ndk/guides/guides_toc.cs" ?> 162 <?cs elif:reference ?> 163 <?cs include:"../../../../frameworks/base/docs/html/ndk/reference/reference_toc.cs" ?> 164 <?cs elif:downloads ?> 165 <?cs include:"../../../../frameworks/base/docs/html/ndk/downloads/downloads_toc.cs" ?> 166 <?cs elif:samples ?> 167 <?cs include:"../../../../frameworks/base/docs/html/ndk/samples/samples_toc.cs" ?> 168 <?cs else ?> 169 <?cs call:reference_default_nav() ?> 170 <?cs /if ?> 171 <?cs elif:guide ?> 172 <?cs include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?> 173 <?cs elif:design ?> 174 <?cs include:"../../../../frameworks/base/docs/html/design/design_toc.cs" ?> 175 <?cs elif:training ?> 176 <?cs include:"../../../../frameworks/base/docs/html/training/training_toc.cs" ?> 177 <?cs elif:tools ?> 178 <?cs include:"../../../../frameworks/base/docs/html/tools/tools_toc.cs" ?> 179 <?cs elif:google ?> 180 <?cs include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?> 181 <?cs elif:samples ?> 182 <?cs include:"../../../../frameworks/base/docs/html/samples/samples_toc.cs" ?> 183 <?cs elif:preview ?> 184 <?cs include:"../../../../frameworks/base/docs/html/preview/preview_toc.cs" ?> 185 <?cs elif:preview ?> 186 <?cs include:"../../../../frameworks/base/docs/html/wear/preview/preview_toc.cs" ?> 187 <?cs elif:distribute ?> 188 <?cs if:googleplay ?> 189 <?cs include:"../../../../frameworks/base/docs/html/distribute/googleplay/googleplay_toc.cs" ?> 190 <?cs elif:essentials ?> 191 <?cs include:"../../../../frameworks/base/docs/html/distribute/essentials/essentials_toc.cs" ?> 192 <?cs elif:users ?> 193 <?cs include:"../../../../frameworks/base/docs/html/distribute/users/users_toc.cs" ?> 194 <?cs elif:engage ?> 195 <?cs include:"../../../../frameworks/base/docs/html/distribute/engage/engage_toc.cs" ?> 196 <?cs elif:monetize ?> 197 <?cs include:"../../../../frameworks/base/docs/html/distribute/monetize/monetize_toc.cs" ?> 198 <?cs elif:analyze ?> 199 <?cs include:"../../../../frameworks/base/docs/html/distribute/analyze/analyze_toc.cs" ?> 200 <?cs elif:disttools ?> 201 <?cs include:"../../../../frameworks/base/docs/html/distribute/tools/disttools_toc.cs" ?> 202 <?cs elif:stories ?> 203 <?cs include:"../../../../frameworks/base/docs/html/distribute/stories/stories_toc.cs" ?> 204 <?cs /if ?> 205 <?cs elif:about ?> 206 <?cs include:"../../../../frameworks/base/docs/html/about/about_toc.cs" ?> 207 <?cs else ?> 208 <?cs call:reference_default_nav() ?> 209 <?cs /if ?> 210 </div> 211 <?cs /if ?> 212 <?cs /def ?> 213 214 <?cs # appears at the bottom of every page ?> 215 <?cs def:custom_cc_copyright() ?> 216 Except as noted, this content is 217 licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> 218 Creative Commons Attribution 2.5</a>. For details and 219 restrictions, see the <a href="<?cs var:toroot ?>license.html">Content 220 License</a>. 221 <?cs /def ?> 222 223 <?cs def:custom_copyright() ?> 224 Except as noted, this content is licensed under <a 225 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 226 For details and restrictions, see the <a href="<?cs var:toroot ?>license.html"> 227 Content License</a>. 228 <?cs /def ?> 229 230 <?cs def:custom_footerlinks() ?> 231 <a href="<?cs var:toroot ?>about/android.html">About Android</a> 232 <a href="<?cs var:toroot ?>auto/index.html">Auto</a> 233 <a href="<?cs var:toroot ?>tv/index.html">TV</a> 234 <a href="<?cs var:toroot ?>wear/index.html">Wear</a> 235 <a href="<?cs var:toroot ?>legal.html">Legal</a> 236 <?cs /def ?> 237 238 <?cs # appears on the right side of the blue bar at the bottom off every page ?> 239 <?cs def:custom_buildinfo() ?> 240 <?cs if:!google && !reference.gcm && !reference.gms ?> 241 Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> — 242 <?cs /if ?> 243 <script src="<?cs var:toroot ?>timestamp.js" type="text/javascript"></script> 244 <script>document.write(BUILD_TIMESTAMP)</script> 245 <?cs /def ?> 246