Dirk Dougherty | 541b494 | 2014-02-14 18:31:53 -0800 | [diff] [blame] | 1 | <?cs def:custom_masthead() ?> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 2 | <a name="top"></a> |
Scott Main | 7a6ab43 | 2014-05-09 10:00:14 -0700 | [diff] [blame] | 3 | <!-- Header --> |
| 4 | <div id="header-wrapper"> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 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 ?> |
Dirk Dougherty | 0dc81b9 | 2015-12-08 14:49:52 -0800 | [diff] [blame] | 24 | |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 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 |
smain@google.com | eeeb9b8 | 2016-08-29 18:12:27 -0700 | [diff] [blame^] | 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 | # |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 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 |
smain@google.com | eeeb9b8 | 2016-08-29 18:12:27 -0700 | [diff] [blame^] | 103 | /if ?><?cs |
| 104 | # |
| 105 | # End if/else reference only docs |
| 106 | # |
| 107 | ?><?cs |
| 108 | /if ?><?cs # end if/else ndk ?> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 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 |
Dirk Dougherty | baa86c7 | 2016-08-21 11:40:19 -0700 | [diff] [blame] | 116 | </a><?cs /if ?><?cs |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 117 | |
Dirk Dougherty | baa86c7 | 2016-08-21 11:40:19 -0700 | [diff] [blame] | 118 | # ADD SEARCH AND MENU ?><?cs |
| 119 | if:!ndk ?><?cs |
smain@google.com | eeeb9b8 | 2016-08-29 18:12:27 -0700 | [diff] [blame^] | 120 | if:!referenceonly ?><?cs |
| 121 | call:header_search_widget() ?><?cs |
| 122 | /if ?><?cs |
Dirk Dougherty | baa86c7 | 2016-08-21 11:40:19 -0700 | [diff] [blame] | 123 | /if ?> |
Dirk Dougherty | 0dc81b9 | 2015-12-08 14:49:52 -0800 | [diff] [blame] | 124 | </div><!-- end header-wrap.wrap --> |
| 125 | </div><!-- end header --> |
Trevor Johns | bf234fd | 2016-04-12 10:35:42 -0700 | [diff] [blame] | 126 | </div> <!--end header-wrapper --> |
Dirk Dougherty | 0dc81b9 | 2015-12-08 14:49:52 -0800 | [diff] [blame] | 127 | |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 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> |
Trevor Johns | bf234fd | 2016-04-12 10:35:42 -0700 | [diff] [blame] | 163 | </ul> |
Dirk Dougherty | ff233cc | 2015-05-04 14:37:05 -0700 | [diff] [blame] | 164 | </div> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 165 | </div> |
| 166 | </nav> |
| 167 | <!-- end NDK navigation--> |
Trevor Johns | bf234fd | 2016-04-12 10:35:42 -0700 | [diff] [blame] | 168 | |
| 169 | |
Trevor Johns | bf234fd | 2016-04-12 10:35:42 -0700 | [diff] [blame] | 170 | |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 171 | <?cs else ?> |
| 172 | <!-- Navigation--> |
| 173 | <nav class="dac-nav"> |
| 174 | <div class="dac-nav-dimmer" data-dac-toggle-nav></div> |
Trevor Johns | bf234fd | 2016-04-12 10:35:42 -0700 | [diff] [blame] | 175 | |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 176 | <div class="dac-nav-sidebar" data-swap data-dynamic="false" data-transition-speed="300" data-dac-nav> |
smain@google.com | eeeb9b8 | 2016-08-29 18:12:27 -0700 | [diff] [blame^] | 177 | <div <?cs if:!referenceonly ?>data-swap-container<?cs /if ?>> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 178 | <?cs call:custom_left_nav() ?> |
smain@google.com | eeeb9b8 | 2016-08-29 18:12:27 -0700 | [diff] [blame^] | 179 | <?cs if:!referenceonly ?> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 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"> |
Dirk Dougherty | 8aec568 | 2016-08-18 19:34:32 -0700 | [diff] [blame] | 186 | <a class="dac-nav-link" href="<?cs var:toroot ?>about/versions/nougat/index.html">Android</a> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 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> |
Dirk Dougherty | 8aec568 | 2016-08-18 19:34:32 -0700 | [diff] [blame] | 292 | <!--<li class="dac-nav-item preview"> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 293 | <a class="dac-nav-link" href="<?cs var:toroot ?>preview/index.html">Preview</a> |
Dirk Dougherty | 8aec568 | 2016-08-18 19:34:32 -0700 | [diff] [blame] | 294 | </li>--> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 295 | </ul> |
smain@google.com | eeeb9b8 | 2016-08-29 18:12:27 -0700 | [diff] [blame^] | 296 | <?cs /if ?><?cs # end if referenceonly ?> |
Trevor Johns | bf234fd | 2016-04-12 10:35:42 -0700 | [diff] [blame] | 297 | </div> |
| 298 | </div> |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 299 | </nav> |
| 300 | <!-- end navigation--> |
| 301 | <?cs /if ?> |
| 302 | |
| 303 | <!-- Nav Setup --> |
| 304 | <script>$('[data-dac-nav]').dacNav();</script> |
| 305 | |
| 306 | <?cs |
Dirk Dougherty | baa86c7 | 2016-08-21 11:40:19 -0700 | [diff] [blame] | 307 | /def ?><?cs # end custom_masthead() ?><?cs |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 308 | |
Dirk Dougherty | baa86c7 | 2016-08-21 11:40:19 -0700 | [diff] [blame] | 309 | def:toast() ?><?cs |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 310 | |
Dirk Dougherty | baa86c7 | 2016-08-21 11:40:19 -0700 | [diff] [blame] | 311 | # (UN)COMMENT TO TOGGLE VISIBILITY |
Trevor Johns | 4ff8891 | 2016-04-19 01:15:39 -0700 | [diff] [blame] | 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> |
Trevor Johns | bf234fd | 2016-04-12 10:35:42 -0700 | [diff] [blame] | 320 | |
Dirk Dougherty | baa86c7 | 2016-08-21 11:40:19 -0700 | [diff] [blame] | 321 | ?><?cs |
| 322 | /def ?> |