blob: 668105be62e86afe6212cbfcb05cb04f819bab2e [file] [log] [blame]
Scott Mainadc61d62011-11-30 18:55:01 -08001<?cs include:"doctype.cs" ?>
2<?cs include:"macros.cs" ?>
Scott Maine05e6f92013-01-29 13:34:17 -08003<html<?cs if:devsite ?> devsite<?cs /if ?>>
Scott Mainadc61d62011-11-30 18:55:01 -08004<?cs include:"head_tag.cs" ?>
smain@google.comc91ecb72014-06-23 10:22:23 -07005<body class="gc-documentation
Dirk Doughertyc3921652014-05-13 16:55:26 -07006
Joe Fernandeza9d796a2015-05-05 22:07:42 -07007<?cs # add document classes for navigation header selection (and other stuff) ?>
Dirk Doughertyc3921652014-05-13 16:55:26 -07008<?cs
Dirk Doughertycf7a3b92015-05-21 00:52:33 -07009 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 Dougherty86120022016-02-09 18:00:05 -080016 if:(guide||develop||training||reference||tools||sdk||google||samples||preview) ?>develop<?cs
Dirk Doughertycf7a3b92015-05-21 00:52:33 -070017 if:guide ?> guide<?cs /if ?><?cs
18 if:samples ?> samples<?cs /if ?><?cs
Dirk Dougherty86120022016-02-09 18:00:05 -080019 if:preview ?> preview<?cs /if ?><?cs
Dirk Doughertycf7a3b92015-05-21 00:52:33 -070020 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 Doughertyc3921652014-05-13 16:55:26 -070033/if ?>" itemscope itemtype="http://schema.org/Article"><?cs
34include:"header.cs" ?>
Scott Mainadc61d62011-11-30 18:55:01 -080035
Dirk Doughertyc3921652014-05-13 16:55:26 -070036<div <?cs
37 if:fullpage
38 ?>class="fullpage"<?cs
Dirk Dougherty29e93432015-05-05 18:17:13 -070039 elif:(design||tools||about||sdk||googleplay||essentials||users||engage||monetize||disttools||stories) && !nonavpage
Dirk Doughertyc3921652014-05-13 16:55:26 -070040 ?>class="col-13" id="doc-col"<?cs
41 elif:!nonavpage
42 ?>class="col-12" id="doc-col"<?cs /if ?> >
Scott Mainadc61d62011-11-30 18:55:01 -080043
Dirk Dougherty18dca5d2012-11-30 12:44:40 -080044<?cs if:(design||training||walkthru) && !page.trainingcourse && !page.article ?><?cs # header logic for docs that provide previous/next buttons ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -070045 <?cs if:header.hide ?>
46 <?cs else ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -070047 <div class="content-header <?cs if:header.justLinks ?>just-links<?cs /if ?>">
Scott Maine4d8f1b2012-06-21 18:03:05 -070048 <?cs if:header.justLinks ?>&nbsp;
49 <?cs else ?><h1 itemprop="name"><?cs var:page.title ?></h1>
50 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -070051 <?cs if:training ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -070052 <div class="training-nav-top" itemscope itemtype="http://schema.org/SiteNavigationElement">
Scott Main235f4d42012-10-02 17:12:23 -070053 <a href="#" class="prev-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070054 zh-tw-lang="上一堂課"
55 zh-cn-lang="上一课"
Scott Main235f4d42012-10-02 17:12:23 -070056 ru-lang="Предыдущий"
57 ko-lang="이전"
58 ja-lang="前へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080059 es-lang="Anterior"
Scott Main235f4d42012-10-02 17:12:23 -070060 >Previous</a>
61 <a href="#" class="next-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070062 zh-tw-lang="下一堂課"
63 zh-cn-lang="下一课"
Scott Main235f4d42012-10-02 17:12:23 -070064 ru-lang="Следующий"
65 ko-lang="다음"
66 ja-lang="次へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080067 es-lang="Siguiente"
Scott Main235f4d42012-10-02 17:12:23 -070068 >Next</a>
69 <a href="#" class="start-class-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070070 zh-tw-lang="開始上課"
71 zh-cn-lang="开始"
Scott Main235f4d42012-10-02 17:12:23 -070072 ru-lang="Начало работы"
73 ko-lang="시작하기"
74 ja-lang="開始する"
Scott Main9ee0fae2014-01-23 10:50:57 -080075 es-lang="Empezar"
Scott Main235f4d42012-10-02 17:12:23 -070076 >Get started</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -070077 </div>
Scott Main5a1123e2012-09-26 12:51:28 -070078 <?cs elif:!page.trainingcourse ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -070079 <div class="paging-links" itemscope itemtype="http://schema.org/SiteNavigationElement">
Scott Main235f4d42012-10-02 17:12:23 -070080 <a href="#" class="prev-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070081 zh-tw-lang="上一堂課"
82 zh-cn-lang="上一课"
Scott Main235f4d42012-10-02 17:12:23 -070083 ru-lang="Предыдущий"
84 ko-lang="이전"
85 ja-lang="前へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080086 es-lang="Anterior"
Scott Main235f4d42012-10-02 17:12:23 -070087 >Previous</a>
88 <a href="#" class="next-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -070089 zh-tw-lang="下一堂課"
90 zh-cn-lang="下一课"
Scott Main235f4d42012-10-02 17:12:23 -070091 ru-lang="Следующий"
92 ko-lang="다음"
93 ja-lang="次へ"
Scott Main9ee0fae2014-01-23 10:50:57 -080094 es-lang="Siguiente"
Scott Main235f4d42012-10-02 17:12:23 -070095 >Next</a>
Scott Maine4d8f1b2012-06-21 18:03:05 -070096 </div>
97 <?cs /if ?><?cs # end if training ?>
98 </div>
smain@google.com20ef3822014-06-13 16:05:28 -070099 <?cs /if ?><?cs # end if header.hide ?>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700100
Dirk Doughertybb2b5532013-11-16 16:07:51 -0800101<?cs elif:samplesProjectIndex ?>
102 <div id="api-info-block">
103 <div class="sum-details-links">
104 Overview
105 &#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
106 &#124; <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 Doughertyc3921652014-05-13 16:55:26 -0700110
Scott Maine4d8f1b2012-06-21 18:03:05 -0700111<?cs else ?>
smain@google.com20ef3822014-06-13 16:05:28 -0700112 <?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 Doughertyc3921652014-05-13 16:55:26 -0700120
Scott Maine4d8f1b2012-06-21 18:03:05 -0700121 <?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 Doughertybb2b5532013-11-16 16:07:51 -0800124 <?cs if:page.landing.image ?><?cs # use two-column layout only if there is an image ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700125 <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 Main0e71cee2012-08-07 13:59:43 -0700130 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700131 <h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1>
132 <p itemprop="description"><?cs var:page.landing.intro ?></p>
Scott Main9ee0fae2014-01-23 10:50:57 -0800133
Scott Mainb505ca62012-07-26 18:00:14 -0700134 <p><a class="next-page-link topic-start-link"></a></p>
Scott Main0e71cee2012-08-07 13:59:43 -0700135 <?cs if:page.landing.image ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700136 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700137 </div>
Scott Main0e71cee2012-08-07 13:59:43 -0700138 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700139 </div>
140 <?cs else ?>
Scott Maine0c11a62012-11-13 07:47:50 -0800141 <?cs if:tab1 ?><div id="title-tabs-wrapper"><?cs /if ?>
Scott Mainbbffb4b2012-11-13 07:40:16 -0800142 <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 Maine0c11a62012-11-13 07:47:50 -0800150 <?cs /if ?>
151 <?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?>
Scott Mainadc61d62011-11-30 18:55:01 -0800152 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700153 <?cs /if ?>
154<?cs /if ?><?cs # end if design ?>
Scott Mainadc61d62011-11-30 18:55:01 -0800155
156 <?cs # THIS IS THE MAIN DOC CONTENT ?>
157 <div id="jd-content">
Scott Mainadc61d62011-11-30 18:55:01 -0800158
159
Scott Main3652a112012-01-30 13:03:08 -0800160 <div class="jd-descr" itemprop="articleBody">
Scott Mainadc61d62011-11-30 18:55:01 -0800161 <?cs call:tag_list(root.descr) ?>
162 </div>
Scott Main9ee0fae2014-01-23 10:50:57 -0800163
Dirk Dougherty29e93432015-05-05 18:17:13 -0700164 <?cs if:!fullscreen && (design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?>
Scott Main9ee0fae2014-01-23 10:50:57 -0800165 <div class="content-footer <?cs
Dirk Dougherty29e93432015-05-05 18:17:13 -0700166 if:fullpage ?>wrap<?cs /if ?>"
Scott Maine4d8f1b2012-06-21 18:03:05 -0700167 itemscope itemtype="http://schema.org/SiteNavigationElement">
Dirk Dougherty29e93432015-05-05 18:17:13 -0700168 <div class="paging-links">
Scott Main235f4d42012-10-02 17:12:23 -0700169 <a href="#" class="next-page-link hide"
Dirk Dougherty0b026ce2013-05-04 13:13:21 -0700170 zh-tw-lang="下一堂課"
171 zh-cn-lang="下一课"
Scott Main235f4d42012-10-02 17:12:23 -0700172 ru-lang="Следующий"
173 ko-lang="다음"
174 ja-lang="次へ"
Scott Main9ee0fae2014-01-23 10:50:57 -0800175 es-lang="Siguiente"
Scott Main235f4d42012-10-02 17:12:23 -0700176 >Next</a>
Scott Main9ee0fae2014-01-23 10:50:57 -0800177 <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.comc91ecb72014-06-23 10:22:23 -0700185 <a href="#" class="next-class-link hide">Next class</a>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700186 </div>
Scott Maine4d8f1b2012-06-21 18:03:05 -0700187 </div>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700188 <?cs /if ?>
Scott Main9ee0fae2014-01-23 10:50:57 -0800189
Scott Mainadc61d62011-11-30 18:55:01 -0800190 </div> <!-- end jd-content -->
191
192<?cs include:"footer.cs" ?>
193</div><!-- end doc-content -->
194
Dirk Doughertyc3921652014-05-13 16:55:26 -0700195<?cs include:"trailer.cs" ?>
Trevor Johnsbf234fd2016-04-12 10:35:42 -0700196 <script src="https://developer.android.com/ytblogger_lists_unified.js" type="text/javascript"></script>
197 <script src="<?cs var:toroot ?>jd_lists_unified.js?v=15" type="text/javascript"></script>
198 <script src="<?cs var:toroot ?>jd_extras.js?v=15" type="text/javascript"></script>
199 <script src="<?cs var:toroot ?>jd_collections.js?v=15" type="text/javascript"></script>
200 <script src="<?cs var:toroot ?>jd_tag_helpers.js?v=15" type="text/javascript"></script>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700201
Scott Mainadc61d62011-11-30 18:55:01 -0800202</body>
203</html>