1 <?cs def:body_content_wrap_start() ?> 2 <div class="wrap clearfix" id="body-content"> 3 <?cs /def ?><?cs 4 5 def:fullpage() ?> 6 <div id="body-content"> 7 <div> 8 <?cs /def ?><?cs 9 10 # The default side navigation for the reference docs ?><?cs 11 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 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"> 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 ?> ]; 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 ?><?cs 77 78 def:ndk_nav() ?> 79 <div class="wrap clearfix" id="body-content"><div class="cols"> 80 <div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 81 <?cs call:mobile_nav_toggle() ?> 82 <div class="dac-toggle-content" id="devdoc-nav"> 83 <div class="scroll-pane"> 84 <?cs 85 if:guide ?><?cs include:"../../../../frameworks/base/docs/html/ndk/guides/guides_toc.cs" ?><?cs 86 elif:reference ?><?cs include:"../../../../frameworks/base/docs/html/ndk/reference/reference_toc.cs" ?><?cs 87 elif:downloads ?><?cs include:"../../../../frameworks/base/docs/html/ndk/downloads/downloads_toc.cs" ?><?cs 88 elif:samples ?><?cs include:"../../../../frameworks/base/docs/html/ndk/samples/samples_toc.cs" ?><?cs 89 /if ?> 90 </div> 91 </div> 92 </div> <!-- end side-nav --> 93 <?cs /def ?><?cs 94 95 def:header_search_widget() ?> 96 <form data-search class="dac-header-search"> 97 <button class="dac-header-search-close" data-search-close> 98 <i class="dac-sprite dac-back-arrow"></i> 99 </button> 100 101 <div class="dac-header-search-inner"> 102 <i class="dac-sprite dac-search-white dac-header-search-icon"></i> 103 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" class="dac-header-search-input" placeholder="Search" /> 104 <button class="dac-header-search-clear dac-hidden" data-search-clear> 105 <i class="dac-sprite dac-close-black"></i> 106 </button> 107 </div> 108 </form> 109 <?cs /def ?><?cs 110 111 def:search_results() ?> 112 <div id="search-results" class="dac-search-results"> 113 <div id="dac-search-results-history" class="dac-search-results-history"> 114 <div class="wrap dac-search-results-history-wrap"> 115 <div class="cols"> 116 <div class="col-1of2 col-tablet-1of2 col-mobile-1of1"> 117 <h2>Most visited</h2> 118 <div class="resource-flow-layout" data-history-query="history:most/visited" data-maxresults="3" data-cardsizes="18x2"></div> 119 </div> 120 121 <div class="col-1of2 col-tablet-1of2 col-mobile-1of1"> 122 <h2>Recently visited</h2> 123 <div class="resource-flow-layout cols" data-history-query="history:recent" data-allow-duplicates="true" data-maxresults="3" data-cardsizes="18x2"></div> 124 </div> 125 </div> 126 </div> 127 </div> 128 129 <div id="dac-search-results-content" class="dac-search-results-content"> 130 <div class="dac-search-results-metadata wrap"> 131 <div class="dac-search-results-for"> 132 <h2>Results for <span id="search-results-for"></span></h2> 133 </div> 134 135 <div id="dac-search-results-hero"></div> 136 137 <div class="dac-search-results-hero cols"> 138 <div id="dac-search-results-reference" class="col-3of6 col-tablet-1of2 col-mobile-1of1"> 139 <div class="suggest-card reference no-display"> 140 <ul class="dac-search-results-reference"> 141 </ul> 142 </div> 143 </div> 144 <div id="dac-custom-search-results"></div> 145 </div> 146 </div> 147 148 </div> 149 </div> 150 <?cs /def ?><?cs 151 152 def:custom_left_nav() ?> 153 <?cs if:(!fullpage && !nonavpage) || forcelocalnav ?> 154 <?cs if:!referenceonly ?> 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 <?cs /if ?> 159 <div class="dac-nav-sub dac-swap-section dac-right dac-active" itemscope 160 itemtype="http://schema.org/SiteNavigationElement" <?cs 161 if:referenceonly ?>style="top:0 !important;"<?cs /if ?>> 162 <?cs if:ndk ?> 163 <?cs if:guide ?> 164 <?cs include:"../../../../frameworks/base/docs/html/ndk/guides/guides_toc.cs" ?> 165 <?cs elif:reference ?> 166 <?cs include:"../../../../frameworks/base/docs/html/ndk/reference/reference_toc.cs" ?> 167 <?cs elif:downloads ?> 168 <?cs include:"../../../../frameworks/base/docs/html/ndk/downloads/downloads_toc.cs" ?> 169 <?cs elif:samples ?> 170 <?cs include:"../../../../frameworks/base/docs/html/ndk/samples/samples_toc.cs" ?> 171 <?cs else ?> 172 <?cs call:reference_default_nav() ?> 173 <?cs /if ?> 174 <?cs elif:guide ?> 175 <?cs include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?> 176 <?cs elif:design ?> 177 <?cs include:"../../../../frameworks/base/docs/html/design/design_toc.cs" ?> 178 <?cs elif:training ?> 179 <?cs include:"../../../../frameworks/base/docs/html/training/training_toc.cs" ?> 180 <?cs elif:tools ?> 181 <?cs include:"../../../../frameworks/base/docs/html/tools/tools_toc.cs" ?> 182 <?cs elif:google ?> 183 <?cs include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?> 184 <?cs elif:samples ?> 185 <?cs include:"../../../../frameworks/base/docs/html/samples/samples_toc.cs" ?> 186 <?cs elif:preview ?> 187 <?cs include:"../../../../frameworks/base/docs/html/preview/preview_toc.cs" ?> 188 <?cs elif:preview ?> 189 <?cs include:"../../../../frameworks/base/docs/html/wear/preview/preview_toc.cs" ?> 190 <?cs elif:distribute ?> 191 <?cs if:googleplay ?> 192 <?cs include:"../../../../frameworks/base/docs/html/distribute/googleplay/googleplay_toc.cs" ?> 193 <?cs elif:essentials ?> 194 <?cs include:"../../../../frameworks/base/docs/html/distribute/essentials/essentials_toc.cs" ?> 195 <?cs elif:users ?> 196 <?cs include:"../../../../frameworks/base/docs/html/distribute/users/users_toc.cs" ?> 197 <?cs elif:engage ?> 198 <?cs include:"../../../../frameworks/base/docs/html/distribute/engage/engage_toc.cs" ?> 199 <?cs elif:monetize ?> 200 <?cs include:"../../../../frameworks/base/docs/html/distribute/monetize/monetize_toc.cs" ?> 201 <?cs elif:analyze ?> 202 <?cs include:"../../../../frameworks/base/docs/html/distribute/analyze/analyze_toc.cs" ?> 203 <?cs elif:disttools ?> 204 <?cs include:"../../../../frameworks/base/docs/html/distribute/tools/disttools_toc.cs" ?> 205 <?cs elif:stories ?> 206 <?cs include:"../../../../frameworks/base/docs/html/distribute/stories/stories_toc.cs" ?> 207 <?cs /if ?> 208 <?cs elif:about ?> 209 <?cs include:"../../../../frameworks/base/docs/html/about/about_toc.cs" ?> 210 <?cs else ?> 211 <?cs call:reference_default_nav() ?> 212 <?cs /if ?> 213 </div> 214 <?cs /if ?> 215 <?cs /def ?><?cs 216 217 # appears at the bottom of every page ?><?cs 218 def:custom_cc_copyright() ?> 219 Except as noted, this content is 220 licensed under <a href="http://creativecommons.org/licenses/by/2.5/"> 221 Creative Commons Attribution 2.5</a>. For details and 222 restrictions, see the <a href="<?cs var:toroot ?>license.html">Content 223 License</a>. 224 <?cs /def ?><?cs 225 226 def:custom_copyright() ?> 227 Except as noted, this content is licensed under <a 228 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 229 For details and restrictions, see the <a href="<?cs var:toroot ?>license.html"> 230 Content License</a>. 231 <?cs /def ?><?cs 232 233 def:custom_footerlinks() ?> 234 <a href="<?cs var:toroot ?>about/android.html">About Android</a> 235 <a href="<?cs var:toroot ?>auto/index.html">Auto</a> 236 <a href="<?cs var:toroot ?>tv/index.html">TV</a> 237 <a href="<?cs var:toroot ?>wear/index.html">Wear</a> 238 <a href="<?cs var:toroot ?>legal.html">Legal</a> 239 <?cs /def ?><?cs 240 241 # appears on the right side of the blue bar at the bottom off every page ?><?cs 242 def:custom_buildinfo() ?> 243 <?cs if:!google && !reference.gcm && !reference.gms ?> 244 Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> — 245 <?cs /if ?> 246 <script src="<?cs var:toroot ?>timestamp.js" type="text/javascript"></script> 247 <script>document.write(BUILD_TIMESTAMP)</script> 248 <?cs /def ?>