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 develop samples" itemscope itemtype="http://schema.org/Article">
6 <?cs include:"header.cs" ?>
7 
8 <div <?cs if:fullpage
9 ?>class="fullpage"<?cs elif:design||tools||about||sdk||distribute
10 ?>class="col-13" id="doc-col"<?cs else
11 ?>class="col-12" id="doc-col"<?cs /if ?> >
12 
13 <!-- start breadcrumb block -->
14 <div id="api-info-block">
15   <div class="sum-details-links">
16 
17   <!-- related links -->
18   <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/index.html">Overview</a>
19   &#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
20   &#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip"
21     onclick="ga('send', 'event', 'Samples', 'Download', <?cs var:projectDir ?>);"
22     >Download</a>
23 
24 </div><!-- end sum-details-links -->
25 
26 </div><!-- end breadcurmb block -->
27 
28 <div id="jd-header" style="border:0;">
29 
30 <div id="pathCrumb">
31 <?cs each:item = parentdirs ?>
32   <?cs if:LinkifyPathCrumb
33     ?><a href="<?cs var:toroot ?><?cs var:item.Link ?>"><?cs var:item.Name ?></a> /
34   <?cs else
35     ?><?cs var:item.Name ?> / <?cs /if ?>
36 <?cs /each ?>
37 </div>
38 
39   <h1 itemprop="name"><?cs var:page.title ?></h1>
40 </div>
41 <!-- end breadcrumb block -->
42 
43 
44 <?cs # THIS IS THE MAIN DOC CONTENT ?>
45 <div id="jd-content">
46 
47 <?cs if:android.whichdoc == "online" ?>
48 
49 <?cs # If this is the online docs, build the src code navigation links ?>
50 
51 
52 <?cs var:summary ?>
53 
54 <!-- begin file contents -->
55 
56 <?cs # embed image/videos if below maxsize (show message otherwise), else display source code ?>
57 <?cs if:resType == "img" ?>
58   <div id="codesample-resource"
59     <?cs if:noDisplay ?>
60       class="noDisplay"><div class="noDisplay-message"></div>
61     <?cs else ?>
62       ><img src="<?cs var:realFile ?>" title="<?cs var:page.title ?>">
63     <?cs /if ?>
64   </div>
65 <?cs elif:resType == "video" ?>
66   <div id="codesample-resource"
67     <?cs if:noDisplay ?>
68       class="noDisplay"><div class="noDisplay-message"></div>
69     <?cs else ?>
70       ><video class="play-on-hover" controls style="border:1px solid #ececec;background-color:#f9f9f9;" poster="">
71         <source src="<?cs var:page.title ?>">
72       </video>
73     <?cs /if ?>
74   </div>
75 <?cs else ?>
76   <div id="codesample-wrapper">
77     <pre id="codesample-line-numbers" class="no-pretty-print hidden"></pre>
78     <pre id="codesample-block"><?cs var:fileContents ?></pre>
79   </div>
80   <script type="text/javascript">
initCodeLineNumbers()81   initCodeLineNumbers();
82   </script>
83 <?cs /if ?>
84 
85 <!-- end file contents -->
86 
87 <?cs else ?><?cs
88   # else, this means it's offline docs,
89           so don't show src links (we dont have the pages!) ?>
90 
91 <?cs /if ?><?cs # end if/else online docs ?>
92 
93       <div class="content-footer <?cs
94                     if:fullpage ?>wrap<?cs
95                     else ?>layout-content-row<?cs /if ?>"
96                     itemscope itemtype="http://schema.org/SiteNavigationElement">
97         <div class="layout-content-col <?cs
98                     if:fullpage ?>col-16<?cs
99                     elif:training||guide ?>col-8<?cs
100                     else ?>col-9<?cs /if ?>" style="padding-top:4px">
101           <?cs if:!page.noplus ?><?cs if:fullpage ?><style>#___plusone_0 {float:right !important;}</style><?cs /if ?>
102             <div class="g-plusone" data-size="medium"></div>
103           <?cs /if ?>
104         </div>
105         <?cs if:!fullscreen ?>
106         <div class="paging-links layout-content-col col-4">
107           <?cs if:(design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?>
108             <a href="#" class="prev-page-link hide"
109                 zh-tw-lang="上一堂課"
110                 zh-cn-lang="上一课"
111                 ru-lang="Предыдущий"
112                 ko-lang="이전"
113                 ja-lang="前へ"
114                 es-lang="Anterior"
115                 >Previous</a>
116             <a href="#" class="next-page-link hide"
117                 zh-tw-lang="下一堂課"
118                 zh-cn-lang="下一课"
119                 ru-lang="Следующий"
120                 ko-lang="다음"
121                 ja-lang="次へ"
122                 es-lang="Siguiente"
123                 >Next</a>
124           <?cs /if ?>
125         </div>
126         <?cs /if ?>
127       </div>
128 
129       <?cs # for training classes, provide a different kind of link when the next page is a different class ?>
130       <?cs if:training && !page.article ?>
131       <div class="layout-content-row content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement">
132           <a href="#" class="next-class-link hide">Next class: </a>
133       </div>
134       <?cs /if ?>
135 
136   </div> <!-- end jd-content -->
137 
138 <?cs include:"footer.cs" ?>
139 </div><!-- end doc-content -->
140 
141 <?cs include:"trailer.cs" ?>
142 
143 </body>
144 </html>
145 
146 
147 
148 
149 
150 
151 
152