• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 <?cs def:custom_masthead() ?>
2 <a name="top"></a>
3 
4 <!-- dialog to prompt lang pref change when loaded from hardcoded URL
5 <div id="langMessage" style="display:none">
6   <div>
7     <div class="lang en">
8       <p>You requested a page in English, would you like to proceed with this language setting?</p>
9     </div>
10     <div class="lang es">
11       <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p>
12     </div>
13     <div class="lang ja">
14       <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p>
15     </div>
16     <div class="lang ko">
17       <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p>
18     </div>
19     <div class="lang ru">
20       <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p>
21     </div>
22     <div class="lang zh-cn">
23       <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p>
24     </div>
25     <div class="lang zh-tw">
26       <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p>
27     </div>
28     <a href="#" class="button yes" onclick="return false;">
29       <span class="lang en">Yes</span>
30       <span class="lang es">Sí</span>
31       <span class="lang ja">Yes</span>
32       <span class="lang ko">Yes</span>
33       <span class="lang ru">Yes</span>
34       <span class="lang zh-cn">是的</span>
35       <span class="lang zh-tw">没有</span>
36     </a>
37     <a href="#" class="button" onclick="$('#langMessage').hide();return false;">
38       <span class="lang en">No</span>
39       <span class="lang es">No</span>
40       <span class="lang ja">No</span>
41       <span class="lang ko">No</span>
42       <span class="lang ru">No</span>
43       <span class="lang zh-cn">没有</span>
44       <span class="lang zh-tw">没有</span>
45     </a>
46   </div>
47 </div> -->
48 
49 <?cs if:!devsite ?><?cs # leave out the global header for devsite; it is in devsite template ?>
50   <!-- Header -->
51   <div id="header-wrapper">
52     <div class="dac-header" id="header"><?cs call:butter_bar() ?>
53       <div class="dac-header-inner">
54         <a class="dac-nav-toggle" data-dac-toggle-nav href="javascript:;" title="Open navigation">
55           <span class="dac-nav-hamburger">
56             <span class="dac-nav-hamburger-top"></span>
57             <span class="dac-nav-hamburger-mid"></span>
58             <span class="dac-nav-hamburger-bot"></span>
59           </span>
60         </a>
61         <?cs if:ndk ?><a class="dac-header-logo" href="<?cs var:toroot ?>ndk/index.html">
62           <img class="dac-header-logo-image" src="<?cs var:toroot ?>assets/images/android_logo_ndk.png"
63               srcset="<?cs var:toroot ?>assets/images/android_logo_ndk@2x.png 2x"
64               width="32" height="36" alt="Android" /> NDK
65           </a><?cs else ?><a class="dac-header-logo" href="<?cs var:toroot ?>index.html">
66           <img class="dac-header-logo-image" src="<?cs var:toroot ?>assets/images/android_logo.png"
67               srcset="<?cs var:toroot ?>assets/images/android_logo@2x.png 2x"
68               width="32" height="36" alt="Android" /> Developers
69           </a><?cs /if ?>
70 
71         <ul class="dac-header-crumbs">
72           <?cs # More <li> elements added here with javascript ?>
73           <?cs if:!section.landing ?><li class="dac-header-crumbs-item"><span class="dac-header-crumbs-link current <?cs
74             if:ndk ?>ndk<?cs /if ?>"><?cs var:page.title ?></a></li><?cs
75           /if ?>
76         </ul>
77 
78         <?cs # ADD SEARCH AND MENU ?>
79         <?cs if:!ndk ?>
80         <?cs call:header_search_widget() ?>
81         <?cs /if ?>
82 
83         <?cs if:ndk ?><a class="dac-header-console-btn" href="http://developer.android.com">
84           <span class="dac-visible-desktop-inline">Back to Android Developers</span>
85         </a><?cs else ?><a class="dac-header-console-btn" href="https://play.google.com/apps/publish/">
86           <span class="dac-sprite dac-google-play"></span>
87           <span class="dac-visible-desktop-inline">Developer</span>
88           Console
89         </a><?cs /if ?>
90 
91       </div><!-- end header-wrap.wrap -->
92     </div><!-- end header -->
93 
94     <div id="searchResults" class="wrap" style="display:none;">
95       <h2 id="searchTitle">Results</h2>
96       <div id="leftSearchControl" class="search-control">Loading...</div>
97     </div>
98   </div> <!--end header-wrapper -->
99 
100   <?cs if:ndk ?>
101   <!-- NDK Navigation-->
102   <nav class="dac-nav">
103     <div class="dac-nav-dimmer" data-dac-toggle-nav></div>
104 
105     <ul class="dac-nav-list" data-dac-nav>
106       <li class="dac-nav-item dac-nav-head">
107         <a class="dac-nav-link dac-nav-logo" data-dac-toggle-nav href="javascript:;" title="Close navigation">
108           <img class="dac-logo-image" src="<?cs var:toroot ?>assets/images/android_logo_ndk.png"
109                srcset="<?cs var:toroot ?>assets/images/android_logo_ndk@2x.png 2x"
110                width="32" height="36" alt="Android" /> NDK
111         </a>
112       </li>
113       <li class="dac-nav-item guides">
114         <a class="dac-nav-link" href="<?cs var:toroot ?>ndk/guides/index.html"
115            zh-tw-lang="API 指南"
116            zh-cn-lang="API 指南"
117            ru-lang="Руководства по API"
118            ko-lang="API 가이드"
119            ja-lang="API ガイド"
120            es-lang="Guías de la API">Guides</a>
121       </li>
122       <li class="dac-nav-item reference">
123         <a class="dac-nav-link" href="<?cs var:toroot ?>ndk/reference/index.html"
124            zh-tw-lang="參考資源"
125            zh-cn-lang="参考"
126            ru-lang="Справочник"
127            ko-lang="참조문서"
128            ja-lang="リファレンス"
129            es-lang="Referencia">Reference</a>
130       </li>
131       <li class="dac-nav-item samples">
132         <a class="dac-nav-link" href="<?cs var:toroot ?>ndk/samples/index.html"
133            >Samples</a>
134       </li>
135       <li class="dac-nav-item downloads">
136         <a class="dac-nav-link" href="<?cs var:toroot ?>ndk/downloads/index.html"
137            >Downloads</a>
138       </li>
139     </ul>
140   </nav>
141   <!-- end NDK navigation-->
142   <?cs else ?>
143   <!-- Navigation-->
144   <nav class="dac-nav">
145     <div class="dac-nav-dimmer" data-dac-toggle-nav></div>
146 
147     <ul class="dac-nav-list" data-dac-nav>
148       <li class="dac-nav-item dac-nav-head">
149         <a class="dac-nav-link dac-nav-logo" data-dac-toggle-nav href="javascript:;" title="Close navigation">
150           <img class="dac-logo-image" src="<?cs var:toroot ?>assets/images/android_logo.png"
151                srcset="<?cs var:toroot ?>assets/images/android_logo@2x.png 2x"
152                width="32" height="36" alt="Android" /> Developers
153         </a>
154       </li>
155       <li class="dac-nav-item home">
156         <a class="dac-nav-link dac-visible-mobile-block" href="<?cs var:toroot ?>index.html">Home</a>
157         <ul class="dac-nav-secondary about">
158           <li class="dac-nav-item about">
159             <a class="dac-nav-link" href="<?cs var:toroot ?>about/index.html">Android</a>
160           </li>
161           <li class="dac-nav-item wear">
162             <a class="dac-nav-link" href="<?cs var:toroot ?>wear/index.html">Wear</a>
163           </li>
164           <li class="dac-nav-item tv">
165             <a class="dac-nav-link" href="<?cs var:toroot ?>tv/index.html">TV</a>
166           </li>
167           <li class="dac-nav-item auto">
168             <a class="dac-nav-link" href="<?cs var:toroot ?>auto/index.html">Auto</a>
169           </li>
170         </ul>
171       </li>
172       <li class="dac-nav-item design">
173         <a class="dac-nav-link" href="<?cs var:toroot ?>design/index.html"
174            zh-tw-lang="設計"
175            zh-cn-lang="设计"
176            ru-lang="Проектирование"
177            ko-lang="디자인"
178            ja-lang="設計"
179            es-lang="Diseñar">Design</a>
180       </li>
181       <li class="dac-nav-item develop">
182         <a class="dac-nav-link" href="<?cs var:toroot ?>develop/index.html"
183            zh-tw-lang="開發"
184            zh-cn-lang="开发"
185            ru-lang="Разработка"
186            ko-lang="개발"
187            ja-lang="開発"
188            es-lang="Desarrollar">Develop</a>
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           <li class="dac-nav-item preview">
234             <a class="dac-nav-link" href="<?cs var:toroot ?>preview/index.html">Preview</a>
235           </li>
236         </ul>
237       </li>
238       <li class="dac-nav-item distribute">
239         <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/<?cs if:android.whichdoc == 'offline' ?>googleplay/<?cs /if ?>index.html"
240            zh-tw-lang="發佈"
241            zh-cn-lang="分发"
242            ru-lang="Распространение"
243            ko-lang="배포"
244            ja-lang="配布"
245            es-lang="Distribuir">Distribute</a>
246         <ul class="dac-nav-secondary distribute">
247           <li class="dac-nav-item googleplay">
248             <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/googleplay/index.html">Google Play</a></li>
249           <li class="dac-nav-item essentials">
250             <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/essentials/index.html">Essentials</a></li>
251           <li class="dac-nav-item users">
252             <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/users/index.html">Get Users</a></li>
253           <li class="dac-nav-item engage">
254             <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/engage/index.html">Engage &amp; Retain</a></li>
255           <li class="dac-nav-item monetize">
256             <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/monetize/index.html">Earn</a>
257           </li>
258           <li class="dac-nav-item analyze">
259             <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/analyze/index.html">Analyze</a>
260           </li>
261           <li class="dac-nav-item stories">
262             <a class="dac-nav-link" href="<?cs var:toroot ?>distribute/stories/index.html">Stories</a>
263           </li>
264         </ul>
265       </li>
266     </ul>
267   </nav>
268   <!-- end navigation-->
269   <?cs /if ?>
270 <?cs /if ?><?cs # end if/else !devsite ?>
271 
272 <?cs
273 /def ?><?cs # end custom_masthead() ?>
274 
275 
276 <?cs # (UN)COMMENT THE INSIDE OF THIS METHOD TO TOGGLE VISIBILITY ?>
277 <?cs def:butter_bar() ?>
278 
279 <?cs # HIDE THE BUTTER BAR
280 
281     <div style="height:20px"><!-- spacer to bump header down --></div>
282     <div id="butterbar-wrapper">
283       <div id="butterbar">
284         <a href="http://googleblog.blogspot.com/" id="butterbar-message">
285           The Android 5.0 SDK will be available on October 17th!
286         </a>
287       </div>
288     </div>
289 
290 ?>
291 
292 <?cs /def ?>
293