sample.cs revision 6fb7e23bbaf07c5b89e885656d15efea07c527dc
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 | <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a> 20 | <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 <?cs var:relative ?> 30 <h1 itemprop="name"><?cs var:page.title ?></h1> 31</div> 32<!-- end breadcrumb block --> 33 34 35<?cs # THIS IS THE MAIN DOC CONTENT ?> 36<div id="jd-content"> 37 38<?cs if:android.whichdoc == "online" ?> 39 40<?cs # If this is the online docs, build the src code navigation links ?> 41 42 43<?cs var:summary ?> 44 45<!-- begin file contents --> 46<div id="codesample-wrapper"> 47<pre id="codesample-line-numbers" class="no-pretty-print hidden"></pre> 48<pre id="codesample-block"><?cs var:fileContents ?></pre> 49</div> 50 51<h3 id="file-location" style="clear:left">Source file location</h3> 52<p>The file containing the source code shown below is located in the corresponding directory in 53<code><sdk>/samples/android-<version>/...</code></p> 54 55 56<!-- end file contents --> 57<script type="text/javascript"> 58 initCodeLineNumbers(); 59</script> 60 61 62 63 64<?cs else ?><?cs 65 # else, this means it's offline docs, 66 so don't show src links (we dont have the pages!) ?> 67 68<p>You can find the source code for this sample in your SDK at:</p> 69<p style="margin-left:2em"> 70<code><em><sdk></em>/samples/android-<em><version></em>/</code> 71</p> 72 73<?cs /if ?><?cs # end if/else online docs ?> 74 75 </div> <!-- end jd-content --> 76 77<?cs include:"footer.cs" ?> 78</div><!-- end doc-content --> 79 80<?cs include:"trailer.cs" ?> 81 82</body> 83</html> 84 85 86 87 88 89 90 91