• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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">
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-200" id="body-content">
13     <div class="g-unit g-first" id="side-nav">
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">
28       <div id="devdoc-nav"><?cs
29         include:"../../../../frameworks/base/docs/html/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 
39 <?cs # The default side navigation for the reference docs ?><?cs
40 def:default_left_nav() ?>
41   <div class="g-section g-tpl-240" id="body-content">
42     <div class="g-unit g-first" id="side-nav">
43       <div id="swapper">
44         <div id="nav-panels">
45           <div id="resize-packages-nav">
46             <div id="packages-nav">
47               <div id="index-links"><nobr>
48                 <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> |
49                 <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr>
50               </div>
51               <ul>
52               	<?cs call:package_link_list(docs.packages) ?>
53               </ul><br/>
54             </div> <!-- end packages -->
55           </div> <!-- end resize-packages -->
56           <div id="classes-nav"><?cs
57             if:subcount(class.package) ?>
58             <ul>
59               <?cs call:list("Interfaces", class.package.interfaces) ?>
60               <?cs call:list("Classes", class.package.classes) ?>
61               <?cs call:list("Enums", class.package.enums) ?>
62               <?cs call:list("Exceptions", class.package.exceptions) ?>
63               <?cs call:list("Errors", class.package.errors) ?>
64             </ul><?cs
65             elif:subcount(package) ?>
66             <ul>
67               <?cs call:class_link_list("Interfaces", package.interfaces) ?>
68               <?cs call:class_link_list("Classes", package.classes) ?>
69               <?cs call:class_link_list("Enums", package.enums) ?>
70               <?cs call:class_link_list("Exceptions", package.exceptions) ?>
71               <?cs call:class_link_list("Errors", package.errors) ?>
72             </ul><?cs
73             else ?>
74               <script>
75                 /*addLoadEvent(maxPackageHeight);*/
76               </script>
77               <p style="padding:10px">Select a package to view its members</p><?cs
78             /if ?><br/>
79           </div><!-- end classes -->
80         </div><!-- end nav-panels -->
81         <div id="nav-tree" style="display:none">
82           <div id="index-links"><nobr>
83             <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> |
84             <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr>
85           </div>
86         </div><!-- end nav-tree -->
87       </div><!-- end swapper -->
88     </div> <!-- end side-nav -->
89     <script>
90       if (!isMobile) {
91         $("<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");
92         chooseDefaultNav();
93         if ($("#nav-tree").is(':visible')) {
94           init_default_navtree("<?cs var:toroot ?>");
95         } else {
96           addLoadEvent(function() {
97             scrollIntoView("packages-nav");
98             scrollIntoView("classes-nav");
99           });
100         }
101         $("#swapper").css({borderBottom:"2px solid #aaa"});
102       } else {
103         swapNav(); // tree view should be used on mobile
104       }
105     </script><?cs
106 /def ?>
107 
108 <?cs
109 def:custom_left_nav() ?><?cs
110   if:guide ?><?cs
111     call:guide_nav() ?><?cs
112   elif:resources ?><?cs
113     call:resources_tab_nav() ?><?cs
114   elif:sdk ?><?cs
115     call:sdk_nav() ?><?cs
116   else ?><?cs
117     call:default_left_nav() ?><?cs
118   /if ?><?cs
119 /def ?>
120 
121 <?cs # appears at the bottom of every page ?><?cs
122 def:custom_cc_copyright() ?>
123   Except as noted, this content is
124   licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
125   Creative Commons Attribution 2.5</a>. For details and
126   restrictions, see the <a href="<?cs var:toroot ?>license.html">Content
127   License</a>.<?cs
128 /def ?>
129 
130 <?cs
131 def:custom_copyright() ?>
132   Except as noted, this content is licensed under <a
133   href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
134   For details and restrictions, see the <a href="<?cs var:toroot ?>license.html">
135   Content License</a>.<?cs
136 /def ?>
137 
138 <?cs
139 def:custom_footerlinks() ?>
140   <p>
141     <a href="http://www.android.com/terms.html">Site Terms of Service</a> -
142     <a href="http://www.android.com/privacy.html">Privacy Policy</a> -
143     <a href="http://www.android.com/branding.html">Brand Guidelines</a>
144   </p><?cs
145 /def ?>
146 
147 <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs
148 def:custom_buildinfo() ?>
149   Android <?cs var:sdk.version ?>&nbsp;r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?>
150 <?cs /def ?>
151 
152