blob: 47639bbae2423be96c468dbc75b3874c8df4af21 [file] [log] [blame]
Ben Dodson4dbb28a2010-08-10 18:22:55 -07001<?cs def:custom_masthead() ?>
Scott Main01a25452013-02-12 17:32:27 -08002<a name="top"></a>
3<?cs if:!devsite ?><?cs # leave out the global header for devsite; it's in devsite template ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -07004 <!-- Header -->
5 <div id="header">
6 <div class="wrap" id="header-wrap">
7 <div class="col-3 logo">
8 <a href="<?cs var:toroot ?>index.html">
9 <img src="<?cs var:toroot ?>assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" />
10 </a>
11 <div class="btn-quicknav" id="btn-quicknav">
12 <a href="#" class="arrow-inactive">Quicknav</a>
Scott Mainaa2ce5d2012-09-21 20:32:56 -070013 <a href="#" class="arrow-active">Quicknav</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -070014 </div>
15 </div>
16 <ul class="nav-x col-9">
Scott Main6eb95f12012-10-02 17:12:23 -070017 <li class="design">
Scott Mainac2aef52013-02-12 14:15:23 -080018 <a href="<?cs var:toroot ?>design/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070019 zh-tw-lang="設計"
20 zh-cn-lang="设计"
Scott Main6eb95f12012-10-02 17:12:23 -070021 ru-lang="Проектирование"
22 ko-lang="디자인"
23 ja-lang="設計"
24 es-lang="Diseñar"
25 >Design</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -080026 <li class="develop"><a href="<?cs var:toroot ?>develop/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070027 zh-tw-lang="開發"
28 zh-cn-lang="开发"
Scott Main6eb95f12012-10-02 17:12:23 -070029 ru-lang="Разработка"
30 ko-lang="개발"
31 ja-lang="開発"
32 es-lang="Desarrollar"
33 >Develop</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -080034 <li class="distribute last"><a href="<?cs var:toroot ?>distribute/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070035 zh-tw-lang="發佈"
36 zh-cn-lang="分发"
Scott Main6eb95f12012-10-02 17:12:23 -070037 ru-lang="Распространение"
38 ko-lang="배포"
39 ja-lang="配布"
40 es-lang="Distribuir"
41 >Distribute</a></li>
Scott Maine4d8f1b2012-06-21 18:03:05 -070042 </ul>
43
44 <!-- New Search -->
45 <div class="menu-container">
46 <div class="moremenu">
47 <div id="more-btn"></div>
48 </div>
49 <div class="morehover" id="moremenu">
50 <div class="top"></div>
51 <div class="mid">
Scott Main55163c82012-07-18 16:18:25 -070052 <div class="header">Links</div>
53 <ul>
54 <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li>
55 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
56 <li><a href="<?cs var:toroot ?>about/index.html">About Android</a></li>
57 </ul>
Scott Maine4d8f1b2012-06-21 18:03:05 -070058 <div class="header">Android Sites</div>
59 <ul>
60 <li><a href="http://www.android.com">Android.com</a></li>
61 <li class="active"><a>Android Developers</a></li>
62 <li><a href="http://source.android.com">Android Open Source Project</a></li>
63 </ul>
Scott Maine05e6f92013-01-29 13:34:17 -080064
Scott Main01a25452013-02-12 17:32:27 -080065 <?cs # Include language switcher only in online docs ?>
66 <?cs if:android.whichdoc == "online" ?>
Scott Maine05e6f92013-01-29 13:34:17 -080067 <div class="header">Language</div>
68 <div id="language" class="locales">
69 <select name="language" onChange="changeLangPref(this.value, true)">
70 <option value="en">English</option>
71 <option value="es">Español</option>
72 <option value="ja">日本語</option>
73 <option value="ko">한국어</option>
74 <option value="ru">Русский</option>
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070075 <option value="zh-cn">中文 (中国)</option>
76 <option value="zh-tw">中文 (台灣)</option>
Scott Maine05e6f92013-01-29 13:34:17 -080077 </select>
78 </div>
79 <script type="text/javascript">
80 <!--
81 loadLangPref();
82 //-->
83 </script>
84 <?cs /if ?>
Scott Main01a25452013-02-12 17:32:27 -080085 <?cs # End of lang switcher ?>
Scott Maine05e6f92013-01-29 13:34:17 -080086
87
Scott Maine4d8f1b2012-06-21 18:03:05 -070088 <br class="clearfix" />
89 </div>
90 <div class="bottom"></div>
91 </div>
92 <div class="search" id="search-container">
93 <div class="search-inner">
94 <div id="search-btn"></div>
95 <div class="left"></div>
96 <form onsubmit="return submit_search()">
97 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
98onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
Scott Main1b3db112012-07-03 14:06:22 -070099onkeydown="return search_changed(event, true, '<?cs var:toroot ?>')"
100onkeyup="return search_changed(event, false, '<?cs var:toroot ?>')" />
Scott Maine4d8f1b2012-06-21 18:03:05 -0700101 </form>
102 <div class="right"></div>
103 <a class="close hide">close</a>
104 <div class="left"></div>
105 <div class="right"></div>
106 </div>
107 </div>
Scott Main0e76e7e2013-03-12 10:24:07 -0700108
109 <div class="search_filtered_wrapper reference">
110 <div class="suggest-card reference no-display">
111 <ul class="search_filtered">
112 </ul>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700113 </div>
114 </div>
Scott Main0e76e7e2013-03-12 10:24:07 -0700115
116 <div class="search_filtered_wrapper docs">
117 <div class="suggest-card dummy no-display">&nbsp;</div>
118 <div class="suggest-card develop no-display">
119 <ul class="search_filtered">
120 </ul>
121 <div class="child-card guides no-display">
122 </div>
123 <div class="child-card training no-display">
124 </div>
Scott Main719acb42013-12-05 16:05:09 -0800125 <div class="child-card samples no-display">
126 </div>
Scott Main0e76e7e2013-03-12 10:24:07 -0700127 </div>
128 <div class="suggest-card design no-display">
129 <ul class="search_filtered">
130 </ul>
131 </div>
132 <div class="suggest-card distribute no-display">
133 <ul class="search_filtered">
134 </ul>
135 </div>
136 </div>
137
Scott Maine4d8f1b2012-06-21 18:03:05 -0700138 </div>
139 <!-- /New Search>
140
141
142 <!-- Expanded quicknav -->
143 <div id="quicknav" class="col-9">
144 <ul>
145 <li class="design">
146 <ul>
Dirk Dougherty8f206072012-10-08 13:14:17 -0700147 <li><a href="<?cs var:toroot ?>design/index.html">Get Started</a></li>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700148 <li><a href="<?cs var:toroot ?>design/style/index.html">Style</a></li>
149 <li><a href="<?cs var:toroot ?>design/patterns/index.html">Patterns</a></li>
150 <li><a href="<?cs var:toroot ?>design/building-blocks/index.html">Building Blocks</a></li>
151 <li><a href="<?cs var:toroot ?>design/downloads/index.html">Downloads</a></li>
Dirk Dougherty8f206072012-10-08 13:14:17 -0700152 <li><a href="<?cs var:toroot ?>design/videos/index.html">Videos</a></li>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700153 </ul>
154 </li>
155 <li class="develop">
156 <ul>
Scott Main6eb95f12012-10-02 17:12:23 -0700157 <li><a href="<?cs var:toroot ?>training/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700158 zh-tw-lang="訓練課程"
159 zh-cn-lang="培训"
Scott Main6eb95f12012-10-02 17:12:23 -0700160 ru-lang="Курсы"
161 ko-lang="교육"
162 ja-lang="トレーニング"
163 es-lang="Capacitación"
164 >Training</a></li>
Scott Main932e3fb2013-12-05 15:17:59 -0800165 <li><a href="<?cs var:toroot ?>guide/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700166 zh-tw-lang="API 指南"
167 zh-cn-lang="API 指南"
Scott Main6eb95f12012-10-02 17:12:23 -0700168 ru-lang="Руководства по API"
169 ko-lang="API 가이드"
170 ja-lang="API ガイド"
171 es-lang="Guías de la API"
172 >API Guides</a></li>
173 <li><a href="<?cs var:toroot ?>reference/packages.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700174 zh-tw-lang="參考資源"
175 zh-cn-lang="参考"
Scott Main6eb95f12012-10-02 17:12:23 -0700176 ru-lang="Справочник"
177 ko-lang="참조문서"
178 ja-lang="リファレンス"
179 es-lang="Referencia"
180 >Reference</a></li>
181 <li><a href="<?cs var:toroot ?>tools/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700182 zh-tw-lang="相關工具"
183 zh-cn-lang="工具"
Scott Main6eb95f12012-10-02 17:12:23 -0700184 ru-lang="Инструменты"
185 ko-lang="도구"
186 ja-lang="ツール"
187 es-lang="Herramientas"
188 >Tools</a>
Robert Ly40e90992012-11-28 17:46:17 -0800189 <ul><li><a href="<?cs var:toroot ?>sdk/index.html">Get the SDK</a></li></ul>
190 </li>
191 <li><a href="<?cs var:toroot ?>google/index.html">Google Services</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700192 </li>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700193 <?cs if:android.hasSamples ?>
194 <li><a href="<?cs var:toroot ?>samples/index.html">Samples</a>
195 </li>
196 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700197 </ul>
198 </li>
199 <li class="distribute last">
200 <ul>
201 <li><a href="<?cs var:toroot ?>distribute/index.html">Google Play</a></li>
202 <li><a href="<?cs var:toroot ?>distribute/googleplay/publish/index.html">Publishing</a></li>
203 <li><a href="<?cs var:toroot ?>distribute/googleplay/promote/index.html">Promoting</a></li>
Dirk Dougherty8f206072012-10-08 13:14:17 -0700204 <li><a href="<?cs var:toroot ?>distribute/googleplay/quality/index.html">App Quality</a></li>
205 <li><a href="<?cs var:toroot ?>distribute/googleplay/spotlight/index.html">Spotlight</a></li>
206 <li><a href="<?cs var:toroot ?>distribute/open.html">Open Distribution</a></li>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700207 </ul>
208 </li>
209 </ul>
210 </div>
211 <!-- /Expanded quicknav -->
212 </div>
213 </div>
214 <!-- /Header -->
215
216
217 <div id="searchResults" class="wrap" style="display:none;">
218 <h2 id="searchTitle">Results</h2>
219 <div id="leftSearchControl" class="search-control">Loading...</div>
220 </div>
221
222
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700223 <?cs if:training || guide || reference || tools || develop || google || samples ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700224 <!-- Secondary x-nav -->
225 <div id="nav-x">
226 <div class="wrap">
Robert Ly40e90992012-11-28 17:46:17 -0800227 <ul class="nav-x col-9 develop" style="width:100%">
Scott Mainac2aef52013-02-12 14:15:23 -0800228 <li class="training"><a href="<?cs var:toroot ?>training/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700229 zh-tw-lang="訓練課程"
230 zh-cn-lang="培训"
Scott Main6eb95f12012-10-02 17:12:23 -0700231 ru-lang="Курсы"
232 ko-lang="교육"
233 ja-lang="トレーニング"
234 es-lang="Capacitación"
235 >Training</a></li>
Scott Main932e3fb2013-12-05 15:17:59 -0800236 <li class="guide"><a href="<?cs var:toroot ?>guide/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700237 zh-tw-lang="API 指南"
238 zh-cn-lang="API 指南"
Scott Main6eb95f12012-10-02 17:12:23 -0700239 ru-lang="Руководства по API"
240 ko-lang="API 가이드"
241 ja-lang="API ガイド"
242 es-lang="Guías de la API"
243 >API Guides</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -0800244 <li class="reference"><a href="<?cs var:toroot ?>reference/packages.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700245 zh-tw-lang="參考資源"
246 zh-cn-lang="参考"
Scott Main6eb95f12012-10-02 17:12:23 -0700247 ru-lang="Справочник"
248 ko-lang="참조문서"
249 ja-lang="リファレンス"
250 es-lang="Referencia"
251 >Reference</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -0800252 <li class="tools"><a href="<?cs var:toroot ?>tools/index.html"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700253 zh-tw-lang="相關工具"
254 zh-cn-lang="工具"
Scott Main6eb95f12012-10-02 17:12:23 -0700255 ru-lang="Инструменты"
256 ko-lang="도구"
257 ja-lang="ツール"
Robert Ly40e90992012-11-28 17:46:17 -0800258 es-lang="Herramientas"
Scott Main6eb95f12012-10-02 17:12:23 -0700259 >Tools</a></li>
Scott Mainac2aef52013-02-12 14:15:23 -0800260 <li class="google"><a href="<?cs var:toroot ?>google/index.html"
Robert Ly40e90992012-11-28 17:46:17 -0800261 >Google Services</a>
262 </li>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700263 <?cs if:android.hasSamples ?>
Scott Maindc63dda2013-08-22 16:03:21 -0700264 <li class="samples"><a href="<?cs var:toroot ?>samples/index.html"
265 >Samples</a>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700266 </li>
267 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700268 </ul>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700269 </div>
270
271 </div>
272 <!-- /Sendondary x-nav -->
Scott Main01a25452013-02-12 17:32:27 -0800273 <?cs /if ?>
274
Scott Maine4d8f1b2012-06-21 18:03:05 -0700275<?cs /if ?>
Scott Main01a25452013-02-12 17:32:27 -0800276<?cs # end if/else !devsite ?>
277
Scott Maine4d8f1b2012-06-21 18:03:05 -0700278 <?cs
279/def ?>