1 <?cs include:"doctype.cs" ?> 2 <?cs include:"macros.cs" ?> 3 <html<?cs if:devsite ?> devsite<?cs /if ?>> 4 <?cs include:"head_tag.cs" ?> 5 <body class="gc-documentation 6 7 <?cs # add document classes for navigation header selection (and other stuff) ?> 8 <?cs 9 if:(google || reference.gms || reference.gcm) ?>google <?cs /if ?><?cs 10 if:ndk ?>ndk<?cs 11 if:guide ?> guide<?cs /if ?><?cs 12 if:samples ?> samples<?cs /if ?><?cs 13 if:reference ?> reference<?cs /if ?><?cs 14 if:downloads ?> downloads<?cs /if ?><?cs 15 else ?><?cs 16 if:(guide||develop||training||reference||tools||sdk||google||samples||preview) ?>develop<?cs 17 if:guide ?> guide<?cs /if ?><?cs 18 if:samples ?> samples<?cs /if ?><?cs 19 if:preview ?> preview<?cs /if ?><?cs 20 elif:(distribute||googleplay||essentials||users||engage||monetize||disttools||stories||analyze) ?>distribute<?cs 21 if:googleplay ?> googleplay<?cs /if ?><?cs 22 if:essentials ?> essentials<?cs /if ?><?cs 23 if:users ?> users<?cs /if ?><?cs 24 if:engage ?> engage<?cs /if ?><?cs 25 if:monetize ?> monetize<?cs /if ?><?cs 26 if:disttools ?> disttools<?cs /if ?><?cs 27 if:stories ?> stories<?cs /if ?><?cs 28 if:analyze ?> analyze<?cs /if ?><?cs 29 elif:(about||wear||tv||auto) ?>about<?cs 30 elif:design ?>design<?cs 31 /if ?><?cs 32 if:page.trainingcourse ?> trainingcourse<?cs /if ?><?cs 33 /if ?>" itemscope itemtype="http://schema.org/Article"><?cs 34 include:"header.cs" ?> 35 36 <div <?cs 37 if:fullpage 38 ?>class="fullpage"<?cs 39 elif:(design||tools||about||sdk||googleplay||essentials||users||engage||monetize||disttools||stories) && !nonavpage 40 ?>class="col-13" id="doc-col"<?cs 41 elif:!nonavpage 42 ?>class="col-12" id="doc-col"<?cs /if ?> > 43 44 <?cs if:(design||training||walkthru) && !page.trainingcourse && !page.article ?><?cs # header logic for docs that provide previous/next buttons ?> 45 <?cs if:header.hide ?> 46 <?cs else ?> 47 <div class="content-header <?cs if:header.justLinks ?>just-links<?cs /if ?>"> 48 <?cs if:header.justLinks ?> 49 <?cs else ?><h1 itemprop="name"><?cs var:page.title ?></h1> 50 <?cs /if ?> 51 <?cs if:training ?> 52 <div class="training-nav-top" itemscope itemtype="http://schema.org/SiteNavigationElement"> 53 <a href="#" class="prev-page-link hide" 54 zh-tw-lang="上一堂課" 55 zh-cn-lang="上一课" 56 ru-lang="Предыдущий" 57 ko-lang="이전" 58 ja-lang="前へ" 59 es-lang="Anterior" 60 >Previous</a> 61 <a href="#" class="next-page-link hide" 62 zh-tw-lang="下一堂課" 63 zh-cn-lang="下一课" 64 ru-lang="Следующий" 65 ko-lang="다음" 66 ja-lang="次へ" 67 es-lang="Siguiente" 68 >Next</a> 69 <a href="#" class="start-class-link hide" 70 zh-tw-lang="開始上課" 71 zh-cn-lang="开始" 72 ru-lang="Начало работы" 73 ko-lang="시작하기" 74 ja-lang="開始する" 75 es-lang="Empezar" 76 >Get started</a> 77 </div> 78 <?cs elif:!page.trainingcourse ?> 79 <div class="paging-links" itemscope itemtype="http://schema.org/SiteNavigationElement"> 80 <a href="#" class="prev-page-link hide" 81 zh-tw-lang="上一堂課" 82 zh-cn-lang="上一课" 83 ru-lang="Предыдущий" 84 ko-lang="이전" 85 ja-lang="前へ" 86 es-lang="Anterior" 87 >Previous</a> 88 <a href="#" class="next-page-link hide" 89 zh-tw-lang="下一堂課" 90 zh-cn-lang="下一课" 91 ru-lang="Следующий" 92 ko-lang="다음" 93 ja-lang="次へ" 94 es-lang="Siguiente" 95 >Next</a> 96 </div> 97 <?cs /if ?><?cs # end if training ?> 98 </div> 99 <?cs /if ?><?cs # end if header.hide ?> 100 101 <?cs elif:samplesProjectIndex ?> 102 <div id="api-info-block"> 103 <div class="sum-details-links"> 104 Overview 105 | <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a> 106 | <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip">Download</a> 107 </div><!-- end sum-details-links --> 108 </div><!-- end breadcurmb block --> 109 <h1 itemprop="name"><?cs var:projectDir ?></h1> 110 111 <?cs else ?> 112 <?cs if:training ?> 113 <?cs # horrible horrible hack to move TOC up when the next/prev links are not there ?> 114 <style> 115 #tb-wrapper { 116 margin-top:6px; 117 } 118 </style> 119 <?cs /if ?> 120 121 <?cs if:(!fullpage && !header.hide) ?> 122 <?cs if:page.landing ?><?cs # header logic for docs that are landing pages ?> 123 <div class="landing-banner"> 124 <?cs if:page.landing.image ?><?cs # use two-column layout only if there is an image ?> 125 <div class="cols"> 126 <div class="col-6"> 127 <img src="<?cs var:toroot ?><?cs var:page.landing.image ?>" alt="" /> 128 </div> 129 <div class="col-6"> 130 <?cs /if ?> 131 <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1> 132 <p itemprop="description"><?cs var:page.landing.intro ?></p> 133 134 <p><a class="next-page-link topic-start-link"></a></p> 135 <?cs if:page.landing.image ?> 136 </div> 137 </div> 138 <?cs /if ?> 139 </div> 140 <?cs else ?> 141 <?cs if:tab1 ?><div id="title-tabs-wrapper"><?cs /if ?> 142 <h1 itemprop="name" <?cs if:tab1 ?>class="with-title-tabs"<?cs /if ?>><?cs var:page.title ?></h1><?cs 143 if:tab1 ?><ul id="title-tabs"> 144 <li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li> 145 <?cs if:tab2 ?> 146 <li><a href="<?cs var:tab2.link ?>"><?cs var:tab2 ?></a></li><?cs /if ?> 147 <?cs if:tab3 ?> 148 <li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?> 149 </ul> 150 <?cs /if ?> 151 <?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?> 152 <?cs /if ?> 153 <?cs /if ?> 154 <?cs /if ?><?cs # end if design ?> 155 156 <?cs # THIS IS THE MAIN DOC CONTENT ?> 157 <div id="jd-content"> 158 159 160 <div class="jd-descr" itemprop="articleBody"> 161 <?cs call:tag_list(root.descr) ?> 162 </div> 163 164 <?cs if:!fullscreen && (design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?> 165 <div class="content-footer <?cs 166 if:fullpage ?>wrap<?cs /if ?>" 167 itemscope itemtype="http://schema.org/SiteNavigationElement"> 168 <div class="paging-links"> 169 <a href="#" class="next-page-link hide" 170 zh-tw-lang="下一堂課" 171 zh-cn-lang="下一课" 172 ru-lang="Следующий" 173 ko-lang="다음" 174 ja-lang="次へ" 175 es-lang="Siguiente" 176 >Next</a> 177 <a href="#" class="start-class-link hide" 178 zh-tw-lang="開始上課" 179 zh-cn-lang="开始" 180 ru-lang="Начало работы" 181 ko-lang="시작하기" 182 ja-lang="開始する" 183 es-lang="Empezar" 184 >Get started</a> 185 <a href="#" class="next-class-link hide">Next class</a> 186 </div> 187 </div> 188 <?cs /if ?> 189 190 </div> <!-- end jd-content --> 191 192 <?cs include:"footer.cs" ?> 193 </div><!-- end doc-content --> 194 195 <?cs include:"trailer.cs" ?> 196 <script src="https://developer.android.com/ytblogger_lists_unified.js?v=17" type="text/javascript"></script> 197 <script src="<?cs var:toroot ?>jd_lists_unified.js?v=17" type="text/javascript"></script> 198 <script src="<?cs var:toroot ?>jd_extras.js?v=17" type="text/javascript"></script> 199 <script src="<?cs var:toroot ?>jd_collections.js?v=17" type="text/javascript"></script> 200 <script src="<?cs var:toroot ?>jd_tag_helpers.js?v=17" type="text/javascript"></script> 201 202 </body> 203 </html> 204