sample.cs revision f2bd4eb26a7e2539f9569bc71ab2446775b28ab6
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">Download</a>
21
22  </div><!-- end sum-details-links -->
23  <div class="api-level">
24  Other info
25  </div>
26</div> <!-- end api-info-block -->
27
28<div id="jd-header" style="border:0;">
29
30<div id="pathCrumb">
31<?cs each:item = parentdirs ?>
32  <?cs if:pathCrumbLinks
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<div id="codesample-wrapper">
56<pre id="codesample-line-numbers" class="no-pretty-print hidden"></pre>
57<pre id="codesample-block"><?cs var:fileContents ?></pre>
58</div>
59
60<h3 id="file-location" style="clear:left">Source file location</h3>
61<p>The file containing the source code shown below is located in the corresponding directory in
62<code>&lt;sdk&gt;/samples/android-&lt;version&gt;/...</code></p>
63
64
65<!-- end file contents -->
66<script type="text/javascript">
67  initCodeLineNumbers();
68</script>
69
70
71
72
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
77<p>You can find the source code for this sample in your SDK at:</p>
78<p style="margin-left:2em">
79<code><em>&lt;sdk&gt;</em>/samples/android-<em>&lt;version&gt;</em>/</code>
80</p>
81
82<?cs /if ?><?cs # end if/else online docs ?>
83
84  </div> <!-- end jd-content -->
85
86<?cs include:"footer.cs" ?>
87</div><!-- end doc-content -->
88
89<?cs include:"trailer.cs" ?>
90
91</body>
92</html>
93
94
95
96
97
98
99
100