Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 1 | <?cs include:"doctype.cs" ?> |
| 2 | <?cs include:"macros.cs" ?> |
| 3 | <html<?cs if:devsite ?> devsite<?cs /if ?>> |
| 4 | <?cs include:"head_tag.cs" ?> |
Scott Main | dc63dda | 2013-08-22 16:03:21 -0700 | [diff] [blame] | 5 | <body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article"> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 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 | |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 13 | <!-- start breadcrumb block --> |
| 14 | <div id="api-info-block"> |
Dirk Dougherty | 6fb7e23 | 2013-08-30 19:06:57 -0700 | [diff] [blame] | 15 | <div class="sum-details-links"> |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 16 | |
Dirk Dougherty | 6fb7e23 | 2013-08-30 19:06:57 -0700 | [diff] [blame] | 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> |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 21 | |
Dirk Dougherty | 6fb7e23 | 2013-08-30 19:06:57 -0700 | [diff] [blame] | 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;"> |
Dirk Dougherty | f2bd4eb | 2013-09-04 17:54:49 -0700 | [diff] [blame] | 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 | |
Dirk Dougherty | 6fb7e23 | 2013-08-30 19:06:57 -0700 | [diff] [blame] | 39 | <h1 itemprop="name"><?cs var:page.title ?></h1> |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 40 | </div> |
Dirk Dougherty | 6fb7e23 | 2013-08-30 19:06:57 -0700 | [diff] [blame] | 41 | <!-- end breadcrumb block --> |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 42 | |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 43 | |
Scott Main | dc63dda | 2013-08-22 16:03:21 -0700 | [diff] [blame] | 44 | <?cs # THIS IS THE MAIN DOC CONTENT ?> |
| 45 | <div id="jd-content"> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 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 | |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 54 | <!-- begin file contents --> |
Scott Main | 498d710 | 2013-08-21 15:47:38 -0700 | [diff] [blame] | 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> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 58 | </div> |
Dirk Dougherty | 981effc | 2013-08-22 21:26:54 -0700 | [diff] [blame] | 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><sdk>/samples/android-<version>/...</code></p> |
| 63 | |
| 64 | |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 65 | <!-- end file contents --> |
Scott Main | 498d710 | 2013-08-21 15:47:38 -0700 | [diff] [blame] | 66 | <script type="text/javascript"> |
| 67 | initCodeLineNumbers(); |
| 68 | </script> |
Dirk Dougherty | 4f7e515 | 2010-09-16 10:43:40 -0700 | [diff] [blame] | 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><sdk></em>/samples/android-<em><version></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 | |