1 <?cs def:custom_masthead() ?> 2 <a name="top"></a> 3 <!-- Header --> 4 <div id="header-wrapper"> 5 <div class="dac-header <?cs if:ndk ?>dac-ndk<?cs /if ?>" id="header"> 6 <div class="dac-header-inner"> 7 <a class="dac-nav-toggle" data-dac-toggle-nav href="javascript:;" title="Open navigation"> 8 <span class="dac-nav-hamburger"> 9 <span class="dac-nav-hamburger-top"></span> 10 <span class="dac-nav-hamburger-mid"></span> 11 <span class="dac-nav-hamburger-bot"></span> 12 </span> 13 </a> 14 <?cs if:ndk ?><a class="dac-header-logo" style="width:144px;" href="<?cs var:toroot 15 ?>ndk/index.html"> 16 <img class="dac-header-logo-image" src="<?cs var:toroot ?>assets/images/android_logo.png" 17 srcset="<?cs var:toroot ?>assets/images/android_logo@2x.png 2x" 18 width="32" height="36" alt="Android" /> NDK 19 </a><?cs else ?><a class="dac-header-logo" href="<?cs var:toroot ?>index.html"> 20 <img class="dac-header-logo-image" src="<?cs var:toroot ?>assets/images/android_logo.png" 21 srcset="<?cs var:toroot ?>assets/images/android_logo@2x.png 2x" 22 width="32" height="36" alt="Android" /> Developers 23 </a><?cs /if ?> 24 25 <?cs if:ndk 26 ?><ul class="dac-header-tabs"> 27 <li> 28 <a href="<?cs var:toroot ?>ndk/guides/index.html" class="dac-header-tab" 29 zh-tw-lang="API 指南" 30 zh-cn-lang="API 指南" 31 ru-lang="Руководства по API" 32 ko-lang="API 가이드" 33 ja-lang="API ガイド" 34 es-lang="Guías de la API">Guides</a> 35 </li> 36 <li> 37 <a href="<?cs var:toroot ?>ndk/reference/index.html" class="dac-header-tab" 38 zh-tw-lang="參考資源" 39 zh-cn-lang="参考" 40 ru-lang="Справочник" 41 ko-lang="참조문서" 42 ja-lang="リファレンス" 43 es-lang="Referencia">Reference</a> 44 </li> 45 <li> 46 <a href="<?cs var:toroot ?>ndk/samples/index.html" class="dac-header-tab" 47 >Samples</a> 48 </li> 49 <li> 50 <a href="<?cs var:toroot ?>ndk/downloads/index.html" class="dac-header-tab" 51 >Downloads</a> 52 </li> 53 </ul><?cs else 54 ?><?cs 55 # 56 # For the reference only docs, include just one tab 57 # 58 ?><?cs if:referenceonly 59 ?><ul class="dac-header-tabs"> 60 <li><a href="<?cs var:toroot ?>reference/packages.html" class="dac-header-tab"><?cs 61 if:sdk.preview 62 ?>Android <?cs var:sdk.codename ?> 63 Preview <?cs var:sdk.preview.version ?><?cs 64 else 65 ?>Android <?cs var:sdk.version ?> 66 r<?cs var:sdk.rel.id ?><?cs 67 /if ?></a> 68 </li> 69 </ul> 70 <?cs else ?><?cs 71 # 72 # End reference only docs, now the online DAC tabs... 73 # 74 ?><ul class="dac-header-tabs"> 75 <li> 76 <a class="dac-header-tab" href="<?cs var:toroot ?>design/index.html" 77 zh-tw-lang="設計" 78 zh-cn-lang="设计" 79 ru-lang="Проектирование" 80 ko-lang="디자인" 81 ja-lang="設計" 82 es-lang="Diseñar">Design</a> 83 </li> 84 <li> 85 <a class="dac-header-tab" href="<?cs var:toroot ?>develop/index.html" 86 zh-tw-lang="開發" 87 zh-cn-lang="开发" 88 ru-lang="Разработка" 89 ko-lang="개발" 90 ja-lang="開発" 91 es-lang="Desarrollar">Develop</a> 92 </li> 93 <li> 94 <a class="dac-header-tab" href="<?cs var:toroot ?>distribute/index.html" 95 zh-tw-lang="發佈" 96 zh-cn-lang="分发" 97 ru-lang="Распространение" 98 ko-lang="배포" 99 ja-lang="配布" 100 es-lang="Distribuir">Distribute</a> 101 </li> 102 </ul><?cs 103 /if ?><?cs 104 # 105 # End if/else reference only docs 106 # 107 ?><?cs 108 /if ?><?cs # end if/else ndk ?> 109 110 <?cs if:ndk ?><a class="dac-header-console-btn" href="http://developer.android.com"> 111 Back to Android Developers 112 </a><?cs else ?><a class="dac-header-console-btn" href="https://play.google.com/apps/publish/"> 113 <span class="dac-sprite dac-google-play"></span> 114 <span class="dac-visible-desktop-inline">Developer</span> 115 Console 116 </a><?cs /if ?><?cs 117 118 # ADD SEARCH AND MENU ?><?cs 119 if:!ndk ?><?cs 120 if:!referenceonly ?><?cs 121 call:header_search_widget() ?><?cs 122 /if ?><?cs 123 /if ?> 124 </div><!-- end header-wrap.wrap --> 125 </div><!-- end header --> 126 </div> <!--end header-wrapper --> 127 128 <?cs if:ndk ?> 129 <!-- NDK Navigation--> 130 <nav class="dac-nav"> 131 <div class="dac-nav-dimmer" data-dac-toggle-nav></div> 132 133 <div class="dac-nav-sidebar" data-swap data-dynamic="false" data-transition-speed="300" data-dac-nav> 134 <div data-swap-container> 135 <?cs call:custom_left_nav() ?> 136 <ul id="dac-main-navigation" class="dac-nav-list dac-swap-section dac-left dac-no-anim"> 137 <li class="dac-nav-item guides"> 138 <a class="dac-nav-link" href="<?cs var:toroot ?>ndk/guides/index.html" 139 zh-tw-lang="API 指南" 140 zh-cn-lang="API 指南" 141 ru-lang="Руководства по API" 142 ko-lang="API 가이드" 143 ja-lang="API ガイド" 144 es-lang="Guías de la API">Guides</a> 145 </li> 146 <li class="dac-nav-item reference"> 147 <a class="dac-nav-link" href="<?cs var:toroot ?>ndk/reference/index.html" 148 zh-tw-lang="參考資源" 149 zh-cn-lang="参考" 150 ru-lang="Справочник" 151 ko-lang="참조문서" 152 ja-lang="リファレンス" 153 es-lang="Referencia">Reference</a> 154 </li> 155 <li class="dac-nav-item samples"> 156 <a class="dac-nav-link" href="<?cs var:toroot ?>ndk/samples/index.html" 157 >Samples</a> 158 </li> 159 <li class="dac-nav-item downloads"> 160 <a class="dac-nav-link" href="<?cs var:toroot ?>ndk/downloads/index.html" 161 >Downloads</a> 162 </li> 163 </ul> 164 </div> 165 </div> 166 </nav> 167 <!-- end NDK navigation--> 168 169 170 171 <?cs else ?> 172 <!-- Navigation--> 173 <nav class="dac-nav"> 174 <div class="dac-nav-dimmer" data-dac-toggle-nav></div> 175 176 <div class="dac-nav-sidebar" data-swap data-dynamic="false" data-transition-speed="300" data-dac-nav> 177 <div <?cs if:!referenceonly ?>data-swap-container<?cs /if ?>> 178 <?cs call:custom_left_nav() ?> 179 <?cs if:!referenceonly ?> 180 <ul id="dac-main-navigation" class="dac-nav-list dac-swap-section dac-left dac-no-anim"> 181 <li class="dac-nav-item home"> 182 <a class="dac-nav-link" href="<?cs var:toroot ?>index.html">Home</a> 183 <i class="dac-sprite dac-expand-more-black dac-nav-sub-slider"></i> 184 <ul class="dac-nav-secondary about"> 185 <li class="dac-nav-item versions"> 186 <a class="dac-nav-link" href="<?cs var:toroot ?>about/versions/nougat/index.html">Android</a> 187 </li> 188 <li class="dac-nav-item wear"> 189 <a class="dac-nav-link" href="<?cs var:toroot ?>wear/index.html">Wear</a> 190 </li> 191 <li class="dac-nav-item tv"> 192 <a class="dac-nav-link" href="<?cs var:toroot ?>tv/index.html">TV</a> 193 </li> 194 <li class="dac-nav-item auto"> 195 <a class="dac-nav-link" href="<?cs var:toroot ?>auto/index.html">Auto</a> 196 </li> 197 </ul> 198 </li> 199 <li class="dac-nav-item design"> 200 <a class="dac-nav-link" href="<?cs var:toroot ?>design/index.html" 201 zh-tw-lang="設計" 202 zh-cn-lang="设计" 203 ru-lang="Проектирование" 204 ko-lang="디자인" 205 ja-lang="設計" 206 es-lang="Diseñar">Design</a> 207 </li> 208 <li class="dac-nav-item develop"> 209 <a class="dac-nav-link" href="<?cs var:toroot ?>develop/index.html" 210 zh-tw-lang="開發" 211 zh-cn-lang="开发" 212 ru-lang="Разработка" 213 ko-lang="개발" 214 ja-lang="開発" 215 es-lang="Desarrollar">Develop</a> 216 <i class="dac-sprite dac-expand-more-black dac-nav-sub-slider"></i> 217 <ul class="dac-nav-secondary develop"> 218 <li class="dac-nav-item training"> 219 <a class="dac-nav-link" href="<?cs var:toroot ?>training/index.html" 220 zh-tw-lang="訓練課程" 221 zh-cn-lang="培训" 222 ru-lang="Курсы" 223 ko-lang="교육" 224 ja-lang="トレーニング" 225 es-lang="Capacitación">Training</a> 226 </li> 227 <li class="dac-nav-item guide"> 228 <a class="dac-nav-link" href="<?cs var:toroot ?>guide/index.html" 229 zh-tw-lang="API 指南" 230 zh-cn-lang="API 指南" 231 ru-lang="Руководства по API" 232 ko-lang="API 가이드" 233 ja-lang="API ガイド" 234 es-lang="Guías de la API">API Guides</a> 235 </li> 236 <li class="dac-nav-item reference"> 237 <a class="dac-nav-link" href="<?cs var:toroot ?>reference/packages.html" 238 zh-tw-lang="參考資源" 239 zh-cn-lang="参考" 240 ru-lang="Справочник" 241 ko-lang="참조문서" 242 ja-lang="リファレンス" 243 es-lang="Referencia">Reference</a> 244 </li> 245 <li class="dac-nav-item tools"> 246 <a class="dac-nav-link" href="<?cs var:toroot ?>sdk/index.html" 247 zh-tw-lang="相關工具" 248 zh-cn-lang="工具" 249 ru-lang="Инструменты" 250 ko-lang="도구" 251 ja-lang="ツール" 252 es-lang="Herramientas">Tools</a></li> 253 <li class="dac-nav-item google"> 254 <a class="dac-nav-link" href="<?cs var:toroot ?>google/index.html">Google Services</a> 255 </li> 256 <?cs if:android.hasSamples ?> 257 <li class="dac-nav-item samples"> 258 <a class="dac-nav-link" href="<?cs var:toroot ?>samples/index.html">Samples</a> 259 </li> 260 <?cs /if ?> 261 </ul> 262 </li> 263 <li class="dac-nav-item distribute"> 264 <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/<?cs if:android.whichdoc == 'offline' ?>googleplay/<?cs /if ?>index.html" 265 zh-tw-lang="發佈" 266 zh-cn-lang="分发" 267 ru-lang="Распространение" 268 ko-lang="배포" 269 ja-lang="配布" 270 es-lang="Distribuir">Distribute</a> 271 <i class="dac-sprite dac-expand-more-black dac-nav-sub-slider"></i> 272 <ul class="dac-nav-secondary distribute"> 273 <li class="dac-nav-item googleplay"> 274 <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/googleplay/index.html">Google Play</a></li> 275 <li class="dac-nav-item essentials"> 276 <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/essentials/index.html">Essentials</a></li> 277 <li class="dac-nav-item users"> 278 <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/users/index.html">Get Users</a></li> 279 <li class="dac-nav-item engage"> 280 <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/engage/index.html">Engage & Retain</a></li> 281 <li class="dac-nav-item monetize"> 282 <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/monetize/index.html">Earn</a> 283 </li> 284 <li class="dac-nav-item analyze"> 285 <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/analyze/index.html">Analyze</a> 286 </li> 287 <li class="dac-nav-item stories"> 288 <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/stories/index.html">Stories</a> 289 </li> 290 </ul> 291 </li> 292 <!--<li class="dac-nav-item preview"> 293 <a class="dac-nav-link" href="<?cs var:toroot ?>preview/index.html">Preview</a> 294 </li>--> 295 </ul> 296 <?cs /if ?><?cs # end if referenceonly ?> 297 </div> 298 </div> 299 </nav> 300 <!-- end navigation--> 301 <?cs /if ?> 302 303 <!-- Nav Setup --> dacNav()304<script>$('[data-dac-nav]').dacNav();</script> 305 306 <?cs 307 /def ?><?cs # end custom_masthead() ?><?cs 308 309 def:toast() ?><?cs 310 311 # (UN)COMMENT TO TOGGLE VISIBILITY 312 313 <div class="dac-toast-group"> 314 <div class="dac-toast" data-toast> 315 <div class="dac-toast-wrap"> 316 This is a demo notification <a href="#">Learn more</a>. 317 </div> 318 </div> 319 </div> 320 321 ?><?cs 322 /def ?>