1 <?cs
2 def:sdk_nav() ?>
3   <div class="g-section g-tpl-240" id="body-content">
4     <div class="g-unit g-first" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
5       <div id="devdoc-nav"><?cs
6         include:"../../../../../frameworks/base/docs/html/sdk/sdk_toc.cs" ?>
7       </div>
8     </div> <!-- end side-nav -->
9 <?cs /def ?>
10 <?cs
11 def:resources_tab_nav() ?>
12   <div class="g-section g-tpl-240" id="body-content">
13     <div class="g-unit g-first" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
14       <div id="devdoc-nav"><?cs
15         include:"../../../../../frameworks/base/docs/html/resources/resources_toc.cs" ?>
16       </div>
17     </div> <!-- end side-nav -->
18     <script>
function()19       addLoadEvent(function() {
20         scrollIntoView("devdoc-nav");
21         });
22     </script>
23 <?cs /def ?>
24 <?cs
25 def:guide_nav() ?>
26   <div class="g-section g-tpl-240" id="body-content">
27     <div class="g-unit g-first" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
28       <div id="devdoc-nav"><?cs
29         include:"../../../../../vendor/pdk/data/google/docs/guide/guide_toc.cs" ?>
30       </div>
31     </div> <!-- end side-nav -->
32     <script>
function()33       addLoadEvent(function() {
34         scrollIntoView("devdoc-nav");
35         });
36     </script>
37 <?cs /def ?>
38 <?cs
39 def:design_nav() ?>
40   <?cs include:"../../../../../frameworks/base/docs/html/design/design_toc.cs" ?>
41 <?cs /def ?>
42 
43 <?cs # The default side navigation for the reference docs ?><?cs
44 def:default_left_nav() ?>
45   <div class="g-section g-tpl-240" id="body-content">
46     <div class="g-unit g-first" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
47       <div id="swapper">
48         <div id="nav-panels">
49           <div id="resize-packages-nav">
50             <div id="packages-nav">
51               <div id="index-links"><nobr>
52                 <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> |
53                 <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr>
54               </div>
55               <ul>
56               	<?cs call:package_link_list(docs.packages) ?>
57               </ul><br/>
58             </div> <!-- end packages -->
59           </div> <!-- end resize-packages -->
60           <div id="classes-nav"><?cs
61             if:subcount(class.package) ?>
62             <ul>
63               <?cs call:list("Interfaces", class.package.interfaces) ?>
64               <?cs call:list("Classes", class.package.classes) ?>
65               <?cs call:list("Enums", class.package.enums) ?>
66               <?cs call:list("Exceptions", class.package.exceptions) ?>
67               <?cs call:list("Errors", class.package.errors) ?>
68             </ul><?cs
69             elif:subcount(package) ?>
70             <ul>
71               <?cs call:class_link_list("Interfaces", package.interfaces) ?>
72               <?cs call:class_link_list("Classes", package.classes) ?>
73               <?cs call:class_link_list("Enums", package.enums) ?>
74               <?cs call:class_link_list("Exceptions", package.exceptions) ?>
75               <?cs call:class_link_list("Errors", package.errors) ?>
76             </ul><?cs
77             else ?>
78               <script>
79                 /*addLoadEvent(maxPackageHeight);*/
80               </script>
81               <p style="padding:10px">Select a package to view its members</p><?cs
82             /if ?><br/>
83           </div><!-- end classes -->
84         </div><!-- end nav-panels -->
85         <div id="nav-tree" style="display:none">
86           <div id="index-links"><nobr>
87             <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> |
88             <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr>
89           </div>
90         </div><!-- end nav-tree -->
91       </div><!-- end swapper -->
92     </div> <!-- end side-nav -->
93     <script>
94       if (!isMobile) {
95         $("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav");
96         chooseDefaultNav();
97         if ($("#nav-tree").is(':visible')) {
98           init_default_navtree("<?cs var:toroot ?>");
99         } else {
100           addLoadEvent(function() {
101             scrollIntoView("packages-nav");
102             scrollIntoView("classes-nav");
103           });
104         }
105         $("#swapper").css({borderBottom:"2px solid #aaa"});
106       } else {
107         swapNav(); // tree view should be used on mobile
108       }
109     </script><?cs
110 /def ?>
111 
112 <?cs
113 def:custom_left_nav() ?><?cs
114   if:guide ?><?cs
115     call:guide_nav() ?><?cs
116   elif:resources ?><?cs
117     call:resources_tab_nav() ?><?cs
118   elif:sdk ?><?cs
119     call:sdk_nav() ?><?cs
120   else ?><?cs
121     call:default_left_nav() ?><?cs
122   /if ?><?cs
123 /def ?>
124 
125 <?cs # appears at the bottom of every page ?><?cs
126 def:custom_cc_copyright() ?>
127   Except as noted, this content is
128   licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
129   Creative Commons Attribution 2.5</a>. For details and
130   restrictions, see the <a href="<?cs var:toroot ?>license.html">Content
131   License</a>.<?cs
132 /def ?>
133 
134 <?cs
135 def:custom_copyright() ?>
136   Except as noted, this content is licensed under <a
137   href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
138   For details and restrictions, see the <a href="<?cs var:toroot ?>license.html">
139   Content License</a>.<?cs
140 /def ?>
141 
142 <?cs
143 def:custom_footerlinks() ?>
144   <p>
145     <a href="http://www.google.com/intl/en/policies/" target="_blank">Privacy &amp; Terms</a> -
146     <a href="http://www.android.com/branding.html" target="_blank">Brand Guidelines</a> -
147     <a
148 href="http://code.google.com/p/android/issues/entry?template=Developer%20Documentation"
149 target="_blank">Report Document Issues</a>
150   </p><?cs
151 /def ?>
152 
153 <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs
154 def:custom_buildinfo() ?>
155   Android <?cs var:sdk.version ?>&nbsp;r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?>
156 <?cs /def ?>