2011-02-17 02:05:29 +08:00
|
|
|
<?cs include:"doctype.cs" ?>
|
|
|
|
<?cs include:"macros.cs" ?>
|
2013-01-30 05:34:17 +08:00
|
|
|
<html<?cs if:devsite ?> devsite<?cs /if ?>>
|
2011-02-17 02:05:29 +08:00
|
|
|
<?cs include:"head_tag.cs" ?>
|
2013-08-23 07:03:21 +08:00
|
|
|
<body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article">
|
2011-02-17 02:05:29 +08:00
|
|
|
<?cs include:"header.cs" ?>
|
|
|
|
|
2010-09-17 01:43:40 +08:00
|
|
|
<div <?cs if:fullpage
|
|
|
|
?>class="fullpage"<?cs elif:design||tools||about||sdk||distribute
|
|
|
|
?>class="col-13" id="doc-col"<?cs else
|
|
|
|
?>class="col-12" id="doc-col"<?cs /if ?> >
|
2011-02-17 02:05:29 +08:00
|
|
|
|
2013-08-23 07:03:21 +08:00
|
|
|
<h1 itemprop="name"><?cs var:projectTitle ?></h1>
|
|
|
|
|
|
|
|
<div id="jd-content">
|
2010-09-17 01:43:40 +08:00
|
|
|
<?cs def:display_files(files) ?>
|
|
|
|
|
|
|
|
<?cs each:file = files ?>
|
|
|
|
<?cs if:file.Type != "dir" ?>
|
2013-08-23 07:03:21 +08:00
|
|
|
<div class="structure-<?cs var:file.Type ?>">
|
|
|
|
<a href="<?cs var:toroot ?><?cs var:file.Href ?>"><?cs var:file.Name ?></a>
|
|
|
|
</div>
|
2010-09-17 01:43:40 +08:00
|
|
|
<?cs else ?>
|
2013-08-23 07:03:21 +08:00
|
|
|
<div class="toggle-content opened structure-dir">
|
|
|
|
<a href="#" onclick="return toggleContent(this)">
|
|
|
|
<img src="<?cs var:toroot ?>assets/images/triangle-opened.png"
|
|
|
|
class="toggle-content-img structure-toggle-img" height="9px" width="9px" />
|
|
|
|
<?cs var:file.Name ?></a><?cs
|
|
|
|
if:file.SummaryFlag == "true" ?><span class="dirInfo"
|
|
|
|
>[ <a href="file.SummaryHref">Info</a> ]</a></span><?cs
|
|
|
|
/if ?>
|
|
|
|
<div class="toggle-content-toggleme structure-toggleme">
|
|
|
|
<?cs if:file.Sub.0.Name ?>
|
2010-09-17 01:43:40 +08:00
|
|
|
<?cs call:display_files(file.Sub) ?>
|
2013-08-23 07:03:21 +08:00
|
|
|
<?cs /if ?>
|
2010-09-17 01:43:40 +08:00
|
|
|
</div> <?cs # /toggleme ?>
|
2013-08-23 07:03:21 +08:00
|
|
|
</div> <?cs # /toggle-content ?>
|
2010-09-17 01:43:40 +08:00
|
|
|
<?cs /if ?>
|
|
|
|
<?cs /each ?>
|
|
|
|
<?cs /def ?>
|
|
|
|
|
2013-08-23 07:03:21 +08:00
|
|
|
<?cs if:android.whichdoc == "online" ?>
|
|
|
|
|
|
|
|
<?cs # If this is the online docs, build the src code navigation links ?>
|
|
|
|
|
|
|
|
<?cs if:page.title == "Project Structure" ?>
|
|
|
|
|
2010-09-17 01:43:40 +08:00
|
|
|
<?cs call:display_files(Files) ?>
|
|
|
|
|
|
|
|
<?cs else ?> <?cs # else not project structure doc ?>
|
2011-02-17 02:05:29 +08:00
|
|
|
|
|
|
|
<?cs var:summary ?>
|
|
|
|
|
2010-09-17 01:43:40 +08:00
|
|
|
<h2>Project Structure</h2>
|
2011-02-17 02:05:29 +08:00
|
|
|
|
2010-09-17 01:43:40 +08:00
|
|
|
<p>Decide what to do with this ...</p>
|
2011-02-17 02:05:29 +08:00
|
|
|
|
2010-09-17 01:43:40 +08:00
|
|
|
<?cs call:display_files(Files) ?>
|
|
|
|
|
|
|
|
<?cs /if ?> <?cs # end if project structure ?>
|
2011-02-17 02:05:29 +08:00
|
|
|
|
2010-09-17 01:43:40 +08:00
|
|
|
<?cs else ?><?cs
|
|
|
|
# else, this means it's offline docs,
|
|
|
|
so don't show src links (we dont 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>/samples/android-<em><version></em>/</code>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<?cs /if ?><?cs # end if/else online docs ?>
|
|
|
|
|
|
|
|
</div> <!-- end jd-content -->
|
|
|
|
|
|
|
|
<?cs include:"footer.cs" ?>
|
2011-02-17 02:05:29 +08:00
|
|
|
</div><!-- end doc-content -->
|
|
|
|
|
|
|
|
<?cs include:"trailer.cs" ?>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
2010-09-17 01:43:40 +08:00
|
|
|
|
|
|
|
|