all the source code pages are NOT generated for the offline version of the docs (only show source in html for online docs). This won't work until a companion change from framwork/base/Android.mk is submitted (but shouldn't break the build). Change-Id: I06c404540870071c2a5a8aa460e156506fd975cb
65 lines
1.5 KiB
C#
65 lines
1.5 KiB
C#
<?cs include:"doctype.cs" ?>
|
|
<?cs include:"macros.cs" ?>
|
|
<?cs set:guide="true" ?>
|
|
<html>
|
|
<?cs include:"head_tag.cs" ?>
|
|
<?cs include:"header.cs" ?>
|
|
|
|
<div class="g-unit" id="doc-content"><a name="top"></a>
|
|
|
|
<div id="jd-header" class="guide-header">
|
|
|
|
<span class="crumb">
|
|
<a href="<?cs var:toroot ?>guide/samples/index.html">Sample Code ></a>
|
|
|
|
</span>
|
|
<h1><?cs var:page.title ?></h1>
|
|
</div>
|
|
|
|
<div id="jd-content">
|
|
|
|
<?cs var:summary ?>
|
|
|
|
<?cs if:android.whichdoc == "online" ?><?cs
|
|
# If this is the online docs, build the src code navigation links ?>
|
|
|
|
<?cs if:subcount(subdirs) ?>
|
|
<h2>Subdirectories</h2>
|
|
<ul class="nolist">
|
|
<?cs each:dir=subdirs ?>
|
|
<li><a href="<?cs var:dir.name ?>/index.html"><?cs
|
|
var:dir.name ?>/</a></li>
|
|
<?cs /each ?>
|
|
</ul>
|
|
<?cs /if ?>
|
|
|
|
<?cs if:subcount(files) ?>
|
|
<h2>Files</h2>
|
|
<ul class="nolist">
|
|
<?cs each:file=files ?>
|
|
<li><a href="<?cs var:file.href ?>"><?cs
|
|
var:file.name ?></a></li>
|
|
<?cs /each ?>
|
|
</ul>
|
|
<?cs /if ?>
|
|
|
|
<?cs else ?><?cs
|
|
# else, this means it's offline docs,
|
|
so don't show src links (we don't have the pages!) ?>
|
|
|
|
<p>You can find the source code for this sample in your SDK at:</p>
|
|
<p style="margin-left:2em">
|
|
<code><em><sdk></em>/platforms/android-<em><version></em>/samples/</code>
|
|
</p>
|
|
|
|
<?cs /if ?><?cs # end if/else online docs ?>
|
|
|
|
<?cs include:"footer.cs" ?>
|
|
</div><!-- end jd-content -->
|
|
</div><!-- end doc-content -->
|
|
|
|
<?cs include:"trailer.cs" ?>
|
|
|
|
</body>
|
|
</html>
|