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