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