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