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 |
Dirk Dougherty | 8612002 | 2016-02-09 18:00:05 -0800 | [diff] [blame] | 16 | if:(guide||develop||training||reference||tools||sdk||google||samples||preview) ?>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 | 8612002 | 2016-02-09 18:00:05 -0800 | [diff] [blame] | 19 | if:preview ?> preview<?cs /if ?><?cs |
Dirk Dougherty | cf7a3b9 | 2015-05-21 00:52:33 -0700 | [diff] [blame] | 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 |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 33 | /if ?>" itemscope itemtype="http://schema.org/Article"><?cs |
| 34 | include:"header.cs" ?> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 35 | |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 36 | <div <?cs |
| 37 | if:fullpage |
| 38 | ?>class="fullpage"<?cs |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 39 | 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] | 40 | ?>class="col-13" id="doc-col"<?cs |
| 41 | elif:!nonavpage |
| 42 | ?>class="col-12" id="doc-col"<?cs /if ?> > |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 43 | |
Dirk Dougherty | 18dca5d | 2012-11-30 12:44:40 -0800 | [diff] [blame] | 44 | <?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] | 45 | <?cs if:header.hide ?> |
| 46 | <?cs else ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 47 | <div class="content-header <?cs if:header.justLinks ?>just-links<?cs /if ?>"> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 48 | <?cs if:header.justLinks ?> |
| 49 | <?cs else ?><h1 itemprop="name"><?cs var:page.title ?></h1> |
| 50 | <?cs /if ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 51 | <?cs if:training ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 52 | <div class="training-nav-top" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 53 | <a href="#" class="prev-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 54 | zh-tw-lang="上一堂課" |
| 55 | zh-cn-lang="上一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 56 | ru-lang="Предыдущий" |
| 57 | ko-lang="이전" |
| 58 | ja-lang="前へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 59 | es-lang="Anterior" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 60 | >Previous</a> |
| 61 | <a href="#" class="next-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 62 | zh-tw-lang="下一堂課" |
| 63 | zh-cn-lang="下一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 64 | ru-lang="Следующий" |
| 65 | ko-lang="다음" |
| 66 | ja-lang="次へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 67 | es-lang="Siguiente" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 68 | >Next</a> |
| 69 | <a href="#" class="start-class-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 70 | zh-tw-lang="開始上課" |
| 71 | zh-cn-lang="开始" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 72 | ru-lang="Начало работы" |
| 73 | ko-lang="시작하기" |
| 74 | ja-lang="開始する" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 75 | es-lang="Empezar" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 76 | >Get started</a> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 77 | </div> |
Scott Main | 5a1123e | 2012-09-26 12:51:28 -0700 | [diff] [blame] | 78 | <?cs elif:!page.trainingcourse ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 79 | <div class="paging-links" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 80 | <a href="#" class="prev-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 81 | zh-tw-lang="上一堂課" |
| 82 | zh-cn-lang="上一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 83 | ru-lang="Предыдущий" |
| 84 | ko-lang="이전" |
| 85 | ja-lang="前へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 86 | es-lang="Anterior" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 87 | >Previous</a> |
| 88 | <a href="#" class="next-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 89 | zh-tw-lang="下一堂課" |
| 90 | zh-cn-lang="下一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 91 | ru-lang="Следующий" |
| 92 | ko-lang="다음" |
| 93 | ja-lang="次へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 94 | es-lang="Siguiente" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 95 | >Next</a> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 96 | </div> |
| 97 | <?cs /if ?><?cs # end if training ?> |
| 98 | </div> |
smain@google.com | 20ef382 | 2014-06-13 16:05:28 -0700 | [diff] [blame] | 99 | <?cs /if ?><?cs # end if header.hide ?> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 100 | |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 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> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 110 | |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 111 | <?cs else ?> |
smain@google.com | 20ef382 | 2014-06-13 16:05:28 -0700 | [diff] [blame] | 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 ?> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 120 | |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 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"> |
Dirk Dougherty | bb2b553 | 2013-11-16 16:07:51 -0800 | [diff] [blame] | 124 | <?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] | 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"> |
Scott Main | 0e71cee | 2012-08-07 13:59:43 -0700 | [diff] [blame] | 130 | <?cs /if ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 131 | <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1> |
| 132 | <p itemprop="description"><?cs var:page.landing.intro ?></p> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 133 | |
Scott Main | b505ca6 | 2012-07-26 18:00:14 -0700 | [diff] [blame] | 134 | <p><a class="next-page-link topic-start-link"></a></p> |
Scott Main | 0e71cee | 2012-08-07 13:59:43 -0700 | [diff] [blame] | 135 | <?cs if:page.landing.image ?> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 136 | </div> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 137 | </div> |
Scott Main | 0e71cee | 2012-08-07 13:59:43 -0700 | [diff] [blame] | 138 | <?cs /if ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 139 | </div> |
| 140 | <?cs else ?> |
Scott Main | e0c11a6 | 2012-11-13 07:47:50 -0800 | [diff] [blame] | 141 | <?cs if:tab1 ?><div id="title-tabs-wrapper"><?cs /if ?> |
Scott Main | bbffb4b | 2012-11-13 07:40:16 -0800 | [diff] [blame] | 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> |
Scott Main | e0c11a6 | 2012-11-13 07:47:50 -0800 | [diff] [blame] | 150 | <?cs /if ?> |
| 151 | <?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 152 | <?cs /if ?> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 153 | <?cs /if ?> |
| 154 | <?cs /if ?><?cs # end if design ?> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 155 | |
| 156 | <?cs # THIS IS THE MAIN DOC CONTENT ?> |
| 157 | <div id="jd-content"> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 158 | |
| 159 | |
Scott Main | 3652a11 | 2012-01-30 13:03:08 -0800 | [diff] [blame] | 160 | <div class="jd-descr" itemprop="articleBody"> |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 161 | <?cs call:tag_list(root.descr) ?> |
| 162 | </div> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 163 | |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 164 | <?cs if:!fullscreen && (design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 165 | <div class="content-footer <?cs |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 166 | if:fullpage ?>wrap<?cs /if ?>" |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 167 | itemscope itemtype="http://schema.org/SiteNavigationElement"> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 168 | <div class="paging-links"> |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 169 | <a href="#" class="next-page-link hide" |
Dirk Dougherty | 0b026ce | 2013-05-04 13:13:21 -0700 | [diff] [blame] | 170 | zh-tw-lang="下一堂課" |
| 171 | zh-cn-lang="下一课" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 172 | ru-lang="Следующий" |
| 173 | ko-lang="다음" |
| 174 | ja-lang="次へ" |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 175 | es-lang="Siguiente" |
Scott Main | 235f4d4 | 2012-10-02 17:12:23 -0700 | [diff] [blame] | 176 | >Next</a> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 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> |
smain@google.com | c91ecb7 | 2014-06-23 10:22:23 -0700 | [diff] [blame] | 185 | <a href="#" class="next-class-link hide">Next class</a> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 186 | </div> |
Scott Main | e4d8f1b | 2012-06-21 18:03:05 -0700 | [diff] [blame] | 187 | </div> |
Dirk Dougherty | 29e9343 | 2015-05-05 18:17:13 -0700 | [diff] [blame] | 188 | <?cs /if ?> |
Scott Main | 9ee0fae | 2014-01-23 10:50:57 -0800 | [diff] [blame] | 189 | |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 190 | </div> <!-- end jd-content --> |
| 191 | |
| 192 | <?cs include:"footer.cs" ?> |
| 193 | </div><!-- end doc-content --> |
| 194 | |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 195 | <?cs include:"trailer.cs" ?> |
Joe Fernandez | f539ae5 | 2016-03-08 23:57:29 -0800 | [diff] [blame] | 196 | <script src="https://developer.android.com/ytblogger_lists_unified.js?v=18" type="text/javascript"></script> |
| 197 | <script src="<?cs var:toroot ?>jd_lists_unified.js?v=18" type="text/javascript"></script> |
| 198 | <script src="<?cs var:toroot ?>jd_extras.js?v=18" type="text/javascript"></script> |
| 199 | <script src="<?cs var:toroot ?>jd_collections.js?v=18" type="text/javascript"></script> |
| 200 | <script src="<?cs var:toroot ?>jd_tag_helpers.js?v=18" type="text/javascript"></script> |
Dirk Dougherty | c392165 | 2014-05-13 16:55:26 -0700 | [diff] [blame] | 201 | |
Scott Main | adc61d6 | 2011-11-30 18:55:01 -0800 | [diff] [blame] | 202 | </body> |
| 203 | </html> |