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