1 <?cs def:custom_masthead() ?>
2     <!-- Header -->
3     <div id="header">
4         <div class="wrap" id="header-wrap">
5           <div class="col-3 logo">
6           <a href="<?cs var:toroot ?>index.html">
7             <img src="<?cs var:toroot ?>assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" />
8           </a>
9           <div class="btn-quicknav" id="btn-quicknav">
10           	<a href="#" class="arrow-inactive">Quicknav</a>
11 			      <a href="#" class="arrow-active">Quicknav</a>
12           </div>
13           </div>
14             <ul class="nav-x col-9">
15                 <li class="design">
16                   <a href="<?cs var:toroot ?>design/index.html" <?cs
17                   if:design ?>class="selected"<?cs /if ?>
18                   zh-TW-lang="設計"
19                   zh-CN-lang="设计"
20                   ru-lang="Проектирование"
21                   ko-lang="디자인"
22                   ja-lang="設計"
23                   es-lang="Diseñar"
24                   >Design</a></li>
25                 <li class="develop"><a href="<?cs var:toroot ?>develop/index.html" <?cs
26                   if:training || guide || reference || tools || develop || google ?>class="selected"<?cs /if ?>
27                   zh-TW-lang="開發"
28                   zh-CN-lang="开发"
29                   ru-lang="Разработка"
30                   ko-lang="개발"
31                   ja-lang="開発"
32                   es-lang="Desarrollar"
33                   >Develop</a></li>
34                 <li class="distribute last"><a href="<?cs var:toroot ?>distribute/index.html" <?cs
35                   if:distribute ?>class="selected"<?cs /if ?>
36                   zh-TW-lang="發佈"
37                   zh-CN-lang="分发"
38                   ru-lang="Распространение"
39                   ko-lang="배포"
40                   ja-lang="配布"
41                   es-lang="Distribuir"
42                   >Distribute</a></li>
43             </ul>
44 
45             <!-- New Search -->
46             <div class="menu-container">
47             <div class="moremenu">
48     <div id="more-btn"></div>
49   </div>
50   <div class="morehover" id="moremenu">
51     <div class="top"></div>
52     <div class="mid">
53       <div class="header">Links</div>
54       <ul>
55         <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li>
56         <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
57         <li><a href="<?cs var:toroot ?>about/index.html">About Android</a></li>
58       </ul>
59       <div class="header">Android Sites</div>
60       <ul>
61         <li><a href="http://www.android.com">Android.com</a></li>
62         <li class="active"><a>Android Developers</a></li>
63         <li><a href="http://source.android.com">Android Open Source Project</a></li>
64       </ul>
65       <div class="header">Language</div>
66       <!-- <div class="header">Support</div>
67       <ul>
68         <li><a href="<?cs var:toroot ?>support.html">Developer Support</a></li>
69       </ul> -->
70       <br class="clearfix" />
71     </div>
72     <div class="bottom"></div>
73   </div>
74   <div class="search" id="search-container">
75     <div class="search-inner">
76       <div id="search-btn"></div>
77       <div class="left"></div>
78       <form onsubmit="return submit_search()">
79         <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
80 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
81 onkeydown="return search_changed(event, true, '<?cs var:toroot ?>')"
82 onkeyup="return search_changed(event, false, '<?cs var:toroot ?>')" />
83       </form>
84       <div class="right"></div>
85         <a class="close hide">close</a>
86         <div class="left"></div>
87         <div class="right"></div>
88     </div>
89   </div>
90   <div id="search_filtered_wrapper">
91     <div id="search_filtered_div" class="no-display">
92         <ul id="search_filtered">
93         </ul>
94     </div>
95   </div>
96 
97   </div>
98   <!-- /New Search>
99 
100 
101           <!-- Expanded quicknav -->
102            <div id="quicknav" class="col-9">
103                 <ul>
104                     <li class="design">
105                       <ul>
106                         <li><a href="<?cs var:toroot ?>design/index.html">Get Started</a></li>
107                         <li><a href="<?cs var:toroot ?>design/style/index.html">Style</a></li>
108                         <li><a href="<?cs var:toroot ?>design/patterns/index.html">Patterns</a></li>
109                         <li><a href="<?cs var:toroot ?>design/building-blocks/index.html">Building Blocks</a></li>
110                         <li><a href="<?cs var:toroot ?>design/downloads/index.html">Downloads</a></li>
111                         <li><a href="<?cs var:toroot ?>design/videos/index.html">Videos</a></li>
112                       </ul>
113                     </li>
114                     <li class="develop">
115                       <ul>
116                         <li><a href="<?cs var:toroot ?>training/index.html"
117                           zh-TW-lang="訓練課程"
118                           zh-CN-lang="培训"
119                           ru-lang="Курсы"
120                           ko-lang="교육"
121                           ja-lang="トレーニング"
122                           es-lang="Capacitación"
123                           >Training</a></li>
124                         <li><a href="<?cs var:toroot ?>guide/components/index.html"
125                           zh-TW-lang="API 指南"
126                           zh-CN-lang="API 指南"
127                           ru-lang="Руководства по API"
128                           ko-lang="API 가이드"
129                           ja-lang="API ガイド"
130                           es-lang="Guías de la API"
131                           >API Guides</a></li>
132                         <li><a href="<?cs var:toroot ?>reference/packages.html"
133                           zh-TW-lang="參考資源"
134                           zh-CN-lang="参考"
135                           ru-lang="Справочник"
136                           ko-lang="참조문서"
137                           ja-lang="リファレンス"
138                           es-lang="Referencia"
139                           >Reference</a></li>
140                         <li><a href="<?cs var:toroot ?>tools/index.html"
141                           zh-TW-lang="相關工具"
142                           zh-CN-lang="工具"
143                           ru-lang="Инструменты"
144                           ko-lang="도구"
145                           ja-lang="ツール"
146                           es-lang="Herramientas"
147                           >Tools</a>
148                           <ul><li><a href="<?cs var:toroot ?>sdk/index.html">Get the SDK</a></li></ul>
149                         </li>
150                         <li><a href="<?cs var:toroot ?>google/index.html">Google Services</a>
151                         </li>
152                       </ul>
153                     </li>
154                     <li class="distribute last">
155                       <ul>
156                         <li><a href="<?cs var:toroot ?>distribute/index.html">Google Play</a></li>
157                         <li><a href="<?cs var:toroot ?>distribute/googleplay/publish/index.html">Publishing</a></li>
158                         <li><a href="<?cs var:toroot ?>distribute/googleplay/promote/index.html">Promoting</a></li>
159                         <li><a href="<?cs var:toroot ?>distribute/googleplay/quality/index.html">App Quality</a></li>
160                         <li><a href="<?cs var:toroot ?>distribute/googleplay/spotlight/index.html">Spotlight</a></li>
161                         <li><a href="<?cs var:toroot ?>distribute/open.html">Open Distribution</a></li>
162                       </ul>
163                     </li>
164                 </ul>
165           </div>
166           <!-- /Expanded quicknav -->
167         </div>
168     </div>
169     <!-- /Header -->
170 
171 
172   <div id="searchResults" class="wrap" style="display:none;">
173           <h2 id="searchTitle">Results</h2>
174           <div id="leftSearchControl" class="search-control">Loading...</div>
175   </div>
176 
177 
178 
179 <?cs if:training || guide || reference || tools || develop || google ?>
180     <!-- Secondary x-nav -->
181     <div id="nav-x">
182         <div class="wrap">
183             <ul class="nav-x col-9 develop" style="width:100%">
184                 <li><a href="<?cs var:toroot ?>training/index.html" <?cs
185                   if:training ?>class="selected"<?cs /if ?>
186                   zh-TW-lang="訓練課程"
187                   zh-CN-lang="培训"
188                   ru-lang="Курсы"
189                   ko-lang="교육"
190                   ja-lang="トレーニング"
191                   es-lang="Capacitación"
192                   >Training</a></li>
193                 <li><a href="<?cs var:toroot ?>guide/components/index.html" <?cs
194                   if:guide ?>class="selected"<?cs /if ?>
195                   zh-TW-lang="API 指南"
196                   zh-CN-lang="API 指南"
197                   ru-lang="Руководства по API"
198                   ko-lang="API 가이드"
199                   ja-lang="API ガイド"
200                   es-lang="Guías de la API"
201                   >API Guides</a></li>
202                 <li><a href="<?cs var:toroot ?>reference/packages.html" <?cs
203                   if:reference && !(reference.gcm || reference.gms) ?>class="selected"<?cs /if ?>
204                   zh-TW-lang="參考資源"
205                   zh-CN-lang="参考"
206                   ru-lang="Справочник"
207                   ko-lang="참조문서"
208                   ja-lang="リファレンス"
209                   es-lang="Referencia"
210                   >Reference</a></li>
211                 <li><a href="<?cs var:toroot ?>tools/index.html" <?cs
212                   if:tools ?>class="selected"<?cs /if ?>
213                   zh-TW-lang="相關工具"
214                   zh-CN-lang="工具"
215                   ru-lang="Инструменты"
216                   ko-lang="도구"
217                   ja-lang="ツール"
218                   es-lang="Herramientas"
219                   >Tools</a></li>
220                 <li><a href="<?cs var:toroot ?>google/index.html" <?cs
221                   if:google || reference.gcm || reference.gms?>class="selected"<?cs /if ?>
222                   >Google Services</a>
223                 </li>
224             </ul>
225         </div>
226 
227     </div>
228     <!-- /Sendondary x-nav -->
229 <?cs /if ?>
230   <?cs
231 /def ?>
232