blob: db648ff2a72189741ced260052ecf88e15a9ff03 [file] [log] [blame]
Scott Mainc4380822011-02-16 10:05:29 -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 Mainc4380822011-02-16 10:05:29 -08004<?cs include:"head_tag.cs" ?>
Scott Maindc63dda2013-08-22 16:03:21 -07005<body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article">
Scott Mainc4380822011-02-16 10:05:29 -08006<?cs include:"header.cs" ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -07007
Dirk Dougherty981effc2013-08-22 21:26:54 -07008<!-- start breadcrumb block -->
9<div id="api-info-block">
10<div class="sum-details-links">
11
12<!-- related links -->
13<?cs if:projectStructure ?>
14<a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/index.html">Overview</a>
15&#124; Project<?cs else ?>Overview
16&#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
17<?cs /if ?>
Scott Main2fbc1c92013-11-20 15:22:15 -080018&#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip"
smain@google.com633f3222014-10-03 15:49:45 -070019 onclick="ga('send', 'event', 'Samples', 'Download', <?cs var:projectDir ?>);"
Scott Main2fbc1c92013-11-20 15:22:15 -080020 >Download</a>
Dirk Dougherty981effc2013-08-22 21:26:54 -070021
22</div><!-- end sum-details-links -->
Dirk Dougherty4bddbb12013-10-29 14:33:15 -070023
Dirk Dougherty981effc2013-08-22 21:26:54 -070024</div><!-- end breadcurmb block -->
25
26<h1 itemprop="name"><?cs var:projectDir ?></h1>
Scott Maindc63dda2013-08-22 16:03:21 -070027
28<div id="jd-content">
29<?cs def:display_files(files) ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070030
Scott Maindc63dda2013-08-22 16:03:21 -070031 <?cs each:file = files ?>
32 <?cs if:file.Type != "dir" ?>
33 <div class="structure-<?cs var:file.Type ?>">
34 <a href="<?cs var:toroot ?><?cs var:file.Href ?>"><?cs var:file.Name ?></a>
35 </div>
36 <?cs else ?>
37 <div class="toggle-content opened structure-dir">
38 <a href="#" onclick="return toggleContent(this)">
39 <img src="<?cs var:toroot ?>assets/images/triangle-opened.png"
40 class="toggle-content-img structure-toggle-img" height="9px" width="9px" />
41 <?cs var:file.Name ?></a><?cs
42 if:file.SummaryFlag == "true" ?><span class="dirInfo"
43 >[&nbsp;<a href="file.SummaryHref">Info</a>&nbsp;]</a></span><?cs
44 /if ?>
45 <div class="toggle-content-toggleme structure-toggleme">
46 <?cs if:file.Sub.0.Name ?>
47 <?cs call:display_files(file.Sub) ?>
48 <?cs /if ?>
49 </div> <?cs # /toggleme ?>
50 </div> <?cs # /toggle-content ?>
51 <?cs /if ?>
52 <?cs /each ?>
53<?cs /def ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070054
55<?cs if:android.whichdoc == "online" ?>
Scott Maind4645ea2013-08-22 16:25:15 -070056 <?cs # If this is the online docs, build the src code navigation links ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070057
Dirk Dougherty981effc2013-08-22 21:26:54 -070058 <?cs if:projectStructure ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070059
Scott Maind4645ea2013-08-22 16:25:15 -070060 <?cs call:display_files(Files) ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070061
Scott Maind4645ea2013-08-22 16:25:15 -070062 <?cs else ?> <?cs # else not project structure doc ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070063
Scott Maind4645ea2013-08-22 16:25:15 -070064 <?cs var:summary ?>
Scott Mainc4380822011-02-16 10:05:29 -080065
Scott Maind4645ea2013-08-22 16:25:15 -070066 <?cs # Remove project structure from landing pages for now
67 # <h2>Project Structure</h2>
68 # <p>Decide what to do with this ...</p>
69 # <?cs call:display_files(Files) ?>
Scott Mainc4380822011-02-16 10:05:29 -080070
Dirk Dougherty981effc2013-08-22 21:26:54 -070071 <?cs /if ?> <?cs # end if projectStructure ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070072
73<?cs else ?><?cs
74 # else, this means it's offline docs,
75 so don't show src links (we dont have the pages!) ?>
76
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070077<?cs /if ?><?cs # end if/else online docs ?>
Dirk Doughertybb2b5532013-11-16 16:07:51 -080078 <div class="content-footer <?cs
79 if:fullpage ?>wrap<?cs
Dirk Dougherty29e93432015-05-05 18:17:13 -070080 else ?>cols<?cs /if ?>"
Dirk Doughertybb2b5532013-11-16 16:07:51 -080081 itemscope itemtype="http://schema.org/SiteNavigationElement">
Dirk Dougherty29e93432015-05-05 18:17:13 -070082 <div class="<?cs
Dirk Doughertybb2b5532013-11-16 16:07:51 -080083 if:fullpage ?>col-16<?cs
84 elif:training||guide ?>col-8<?cs
85 else ?>col-9<?cs /if ?>" style="padding-top:4px">
86 <?cs if:!page.noplus ?><?cs if:fullpage ?><style>#___plusone_0 {float:right !important;}</style><?cs /if ?>
87 <div class="g-plusone" data-size="medium"></div>
88 <?cs /if ?>
89 </div>
90 <?cs if:!fullscreen ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -070091 <div class="paging-links col-4">
Dirk Doughertybb2b5532013-11-16 16:07:51 -080092 <?cs if:(design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?>
93 <a href="#" class="prev-page-link hide"
94 zh-tw-lang="上一堂課"
95 zh-cn-lang="上一课"
96 ru-lang="Предыдущий"
97 ko-lang="이전"
98 ja-lang="前へ"
99 es-lang="Anterior"
100 >Previous</a>
101 <a href="#" class="next-page-link hide"
102 zh-tw-lang="下一堂課"
103 zh-cn-lang="下一课"
104 ru-lang="Следующий"
105 ko-lang="다음"
106 ja-lang="次へ"
107 es-lang="Siguiente"
108 >Next</a>
109 <?cs /if ?>
110 </div>
111 <?cs /if ?>
112 </div>
113
114 <?cs # for training classes, provide a different kind of link when the next page is a different class ?>
115 <?cs if:training && !page.article ?>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700116 <div class="content-footer next-class" style="display:none" itemscope itemtype="http://schema.org/SiteNavigationElement">
Dirk Doughertybb2b5532013-11-16 16:07:51 -0800117 <a href="#" class="next-class-link hide">Next class: </a>
118 </div>
119 <?cs /if ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700120
121 </div> <!-- end jd-content -->
Scott Mainc4380822011-02-16 10:05:29 -0800122
123<?cs include:"footer.cs" ?>
Scott Mainc4380822011-02-16 10:05:29 -0800124
125<?cs include:"trailer.cs" ?>
126
127</body>
128</html>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -0700129
130