blob: 123ab32b4121e5ab23197eebed042a746c330783 [file] [log] [blame]
smain@google.com4f3a05a2016-08-31 11:30:02 -07001<?cs def:body_content_wrap_start() ?>
2 <div class="wrap clearfix" id="body-content">
Dirk Doughertyf97b2ef2015-05-12 21:23:05 -07003<?cs /def ?><?cs
4
Scott Maine4d8f1b2012-06-21 18:03:05 -07005def:fullpage() ?>
6 <div id="body-content">
Dirk Dougherty29e93432015-05-05 18:17:13 -07007 <div>
Dirk Doughertyc3921652014-05-13 16:55:26 -07008<?cs /def ?><?cs
9
smain@google.com4f3a05a2016-08-31 11:30:02 -070010# The default side navigation for the reference docs ?><?cs
11def:reference_default_nav() ?>
12 <!-- Fullscreen toggler -->
13 <button data-fullscreen class="dac-nav-fullscreen">
14 <i class="dac-sprite dac-fullscreen"></i>
15 </button>
Scott Maine4d8f1b2012-06-21 18:03:05 -070016
smain@google.com4f3a05a2016-08-31 11:30:02 -070017 <script>$('[data-fullscreen]').dacFullscreen();</script>
18 <!-- End: Fullscreen toggler -->
19
20 <?cs if:reference.gcm || reference.gms ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -070021 <?cs include:"../../../../../frameworks/base/docs/html/google/google_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -070022 <script type="text/javascript">
23 showGoogleRefTree();
Scott Maine4d8f1b2012-06-21 18:03:05 -070024 </script>
smain@google.com4f3a05a2016-08-31 11:30:02 -070025 <?cs else ?>
26 <div id="devdoc-nav">
Scott Maine4d8f1b2012-06-21 18:03:05 -070027 <div id="api-nav-header">
28 <div id="api-level-toggle">
Scott Main641c2c22013-10-31 14:48:45 -070029 <label for="apiLevelCheckbox" class="disabled"
smain@google.com4f3a05a2016-08-31 11:30:02 -070030 title="Select your target API level to dim unavailable APIs">API level: </label>
Scott Maine4d8f1b2012-06-21 18:03:05 -070031 <div class="select-wrapper">
32 <select id="apiLevelSelector">
33 <!-- option elements added by buildApiLevelSelector() -->
34 </select>
35 </div>
36 </div><!-- end toggle -->
37 <div id="api-nav-title">Android APIs</div>
smain@google.com4f3a05a2016-08-31 11:30:02 -070038 </div><!-- end nav header -->
Scott Maine4d8f1b2012-06-21 18:03:05 -070039 <script>
Joe Fernandeza9d796a2015-05-05 22:07:42 -070040 var SINCE_DATA = [ <?cs
41 each:since = since ?>'<?cs
42 var:since.name ?>'<?cs
Scott Maine4d8f1b2012-06-21 18:03:05 -070043 if:!last(since) ?>, <?cs /if ?><?cs
smain@google.com4f3a05a2016-08-31 11:30:02 -070044 /each
45 ?> ];
Scott Maine4d8f1b2012-06-21 18:03:05 -070046 buildApiLevelSelector();
47 </script>
Joe Fernandeza9d796a2015-05-05 22:07:42 -070048
smain@google.com4f3a05a2016-08-31 11:30:02 -070049 <div class="dac-reference-nav" data-reference-tree>
50 <ul class="dac-reference-nav-list" data-reference-namespaces>
51 <?cs call:package_link_list(docs.packages) ?>
52 </ul>
Scott Maine4d8f1b2012-06-21 18:03:05 -070053
smain@google.com4f3a05a2016-08-31 11:30:02 -070054 <?cs if:subcount(class.package) ?>
55 <ul data-reference-resources>
56 <?cs call:list("Annotations", class.package.annotations) ?>
57 <?cs call:list("Interfaces", class.package.interfaces) ?>
58 <?cs call:list("Classes", class.package.classes) ?>
59 <?cs call:list("Enums", class.package.enums) ?>
60 <?cs call:list("Exceptions", class.package.exceptions) ?>
61 <?cs call:list("Errors", class.package.errors) ?>
62 </ul>
63 <?cs elif:subcount(package) ?>
64 <ul data-reference-resources>
65 <?cs call:class_link_list("Annotations", package.annotations) ?>
66 <?cs call:class_link_list("Interfaces", package.interfaces) ?>
67 <?cs call:class_link_list("Classes", package.classes) ?>
68 <?cs call:class_link_list("Enums", package.enums) ?>
69 <?cs call:class_link_list("Exceptions", package.exceptions) ?>
70 <?cs call:class_link_list("Errors", package.errors) ?>
71 </ul>
72 <?cs /if ?>
Scott Maine4d8f1b2012-06-21 18:03:05 -070073 </div>
smain@google.com4f3a05a2016-08-31 11:30:02 -070074 </div>
75 <?cs /if ?>
76<?cs /def ?><?cs
Ben Dodson4dbb28a2010-08-10 18:22:55 -070077
Dirk Doughertycf7a3b92015-05-21 00:52:33 -070078def:ndk_nav() ?>
79 <div class="wrap clearfix" id="body-content"><div class="cols">
80 <div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
81 <?cs call:mobile_nav_toggle() ?>
82 <div class="dac-toggle-content" id="devdoc-nav">
83 <div class="scroll-pane">
84<?cs
Dan Willemsen0f40baf2016-10-12 00:10:33 -070085if:guide ?><?cs include:"../../../../../frameworks/base/docs/html/ndk/guides/guides_toc.cs" ?><?cs
86elif:reference ?><?cs include:"../../../../../frameworks/base/docs/html/ndk/reference/reference_toc.cs" ?><?cs
87elif:downloads ?><?cs include:"../../../../../frameworks/base/docs/html/ndk/downloads/downloads_toc.cs" ?><?cs
88elif:samples ?><?cs include:"../../../../../frameworks/base/docs/html/ndk/samples/samples_toc.cs" ?><?cs
Dirk Doughertycf7a3b92015-05-21 00:52:33 -070089/if ?>
90 </div>
91 </div>
92 </div> <!-- end side-nav -->
smain@google.com4f3a05a2016-08-31 11:30:02 -070093<?cs /def ?><?cs
Dirk Doughertyc3921652014-05-13 16:55:26 -070094
Dirk Doughertyc3921652014-05-13 16:55:26 -070095def:header_search_widget() ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -070096 <form data-search class="dac-header-search">
97 <button class="dac-header-search-close" data-search-close>
98 <i class="dac-sprite dac-back-arrow"></i>
99 </button>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700100
smain@google.com4f3a05a2016-08-31 11:30:02 -0700101 <div class="dac-header-search-inner">
102 <i class="dac-sprite dac-search-white dac-header-search-icon"></i>
103 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" class="dac-header-search-input" placeholder="Search" />
104 <button class="dac-header-search-clear dac-hidden" data-search-clear>
105 <i class="dac-sprite dac-close-black"></i>
106 </button>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700107 </div>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700108 </form>
109<?cs /def ?><?cs
110
111def:search_results() ?>
112 <div id="search-results" class="dac-search-results">
113 <div id="dac-search-results-history" class="dac-search-results-history">
114 <div class="wrap dac-search-results-history-wrap">
115 <div class="cols">
116 <div class="col-1of2 col-tablet-1of2 col-mobile-1of1">
117 <h2>Most visited</h2>
118 <div class="resource-flow-layout" data-history-query="history:most/visited" data-maxresults="3" data-cardsizes="18x2"></div>
119 </div>
120
121 <div class="col-1of2 col-tablet-1of2 col-mobile-1of1">
122 <h2>Recently visited</h2>
123 <div class="resource-flow-layout cols" data-history-query="history:recent" data-allow-duplicates="true" data-maxresults="3" data-cardsizes="18x2"></div>
124 </div>
125 </div>
Dirk Doughertyc3921652014-05-13 16:55:26 -0700126 </div>
127 </div>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700128
129 <div id="dac-search-results-content" class="dac-search-results-content">
130 <div class="dac-search-results-metadata wrap">
131 <div class="dac-search-results-for">
132 <h2>Results for <span id="search-results-for"></span></h2>
133 </div>
134
135 <div id="dac-search-results-hero"></div>
136
137 <div class="dac-search-results-hero cols">
138 <div id="dac-search-results-reference" class="col-3of6 col-tablet-1of2 col-mobile-1of1">
139 <div class="suggest-card reference no-display">
140 <ul class="dac-search-results-reference">
141 </ul>
142 </div>
143 </div>
144 <div id="dac-custom-search-results"></div>
145 </div>
146 </div>
147
Dirk Doughertyc3921652014-05-13 16:55:26 -0700148 </div>
149 </div>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700150<?cs /def ?><?cs
Dirk Doughertyc3921652014-05-13 16:55:26 -0700151
smain@google.com4f3a05a2016-08-31 11:30:02 -0700152def:custom_left_nav() ?>
153 <?cs if:(!fullpage && !nonavpage) || forcelocalnav ?>
154 <?cs if:!referenceonly ?>
155 <a class="dac-nav-back-button dac-swap-section dac-up dac-no-anim" data-swap-button href="javascript:;">
156 <i class="dac-sprite dac-nav-back"></i> <span class="dac-nav-back-title">Back</span>
157 </a>
158 <?cs /if ?>
159 <div class="dac-nav-sub dac-swap-section dac-right dac-active" itemscope
160 itemtype="http://schema.org/SiteNavigationElement" <?cs
161 if:referenceonly ?>style="top:0 !important;"<?cs /if ?>>
162 <?cs if:ndk ?>
163 <?cs if:guide ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700164 <?cs include:"../../../../../frameworks/base/docs/html/ndk/guides/guides_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700165 <?cs elif:reference ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700166 <?cs include:"../../../../../frameworks/base/docs/html/ndk/reference/reference_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700167 <?cs elif:downloads ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700168 <?cs include:"../../../../../frameworks/base/docs/html/ndk/downloads/downloads_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700169 <?cs elif:samples ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700170 <?cs include:"../../../../../frameworks/base/docs/html/ndk/samples/samples_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700171 <?cs else ?>
172 <?cs call:reference_default_nav() ?>
173 <?cs /if ?>
174 <?cs elif:guide ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700175 <?cs include:"../../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700176 <?cs elif:design ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700177 <?cs include:"../../../../../frameworks/base/docs/html/design/design_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700178 <?cs elif:training ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700179 <?cs include:"../../../../../frameworks/base/docs/html/training/training_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700180 <?cs elif:tools ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700181 <?cs include:"../../../../../frameworks/base/docs/html/tools/tools_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700182 <?cs elif:google ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700183 <?cs include:"../../../../../frameworks/base/docs/html/google/google_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700184 <?cs elif:samples ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700185 <?cs include:"../../../../../frameworks/base/docs/html/samples/samples_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700186 <?cs elif:preview ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700187 <?cs include:"../../../../../frameworks/base/docs/html/preview/preview_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700188 <?cs elif:preview ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700189 <?cs include:"../../../../../frameworks/base/docs/html/wear/preview/preview_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700190 <?cs elif:distribute ?>
191 <?cs if:googleplay ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700192 <?cs include:"../../../../../frameworks/base/docs/html/distribute/googleplay/googleplay_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700193 <?cs elif:essentials ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700194 <?cs include:"../../../../../frameworks/base/docs/html/distribute/essentials/essentials_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700195 <?cs elif:users ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700196 <?cs include:"../../../../../frameworks/base/docs/html/distribute/users/users_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700197 <?cs elif:engage ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700198 <?cs include:"../../../../../frameworks/base/docs/html/distribute/engage/engage_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700199 <?cs elif:monetize ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700200 <?cs include:"../../../../../frameworks/base/docs/html/distribute/monetize/monetize_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700201 <?cs elif:analyze ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700202 <?cs include:"../../../../../frameworks/base/docs/html/distribute/analyze/analyze_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700203 <?cs elif:disttools ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700204 <?cs include:"../../../../../frameworks/base/docs/html/distribute/tools/disttools_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700205 <?cs elif:stories ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700206 <?cs include:"../../../../../frameworks/base/docs/html/distribute/stories/stories_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700207 <?cs /if ?>
208 <?cs elif:about ?>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700209 <?cs include:"../../../../../frameworks/base/docs/html/about/about_toc.cs" ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700210 <?cs else ?>
211 <?cs call:reference_default_nav() ?>
212 <?cs /if ?>
213 </div>
214 <?cs /if ?>
215<?cs /def ?><?cs
Dirk Doughertyc3921652014-05-13 16:55:26 -0700216
smain@google.com4f3a05a2016-08-31 11:30:02 -0700217# appears at the bottom of every page ?><?cs
Ben Dodson4dbb28a2010-08-10 18:22:55 -0700218def:custom_cc_copyright() ?>
Joe Fernandeza9d796a2015-05-05 22:07:42 -0700219 Except as noted, this content is
smain@google.com4f3a05a2016-08-31 11:30:02 -0700220 licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
Joe Fernandeza9d796a2015-05-05 22:07:42 -0700221 Creative Commons Attribution 2.5</a>. For details and
222 restrictions, see the <a href="<?cs var:toroot ?>license.html">Content
smain@google.com4f3a05a2016-08-31 11:30:02 -0700223 License</a>.
224<?cs /def ?><?cs
Ben Dodson4dbb28a2010-08-10 18:22:55 -0700225
Ben Dodson4dbb28a2010-08-10 18:22:55 -0700226def:custom_copyright() ?>
227 Except as noted, this content is licensed under <a
smain@google.com4f3a05a2016-08-31 11:30:02 -0700228 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
Ben Dodson4dbb28a2010-08-10 18:22:55 -0700229 For details and restrictions, see the <a href="<?cs var:toroot ?>license.html">
smain@google.com4f3a05a2016-08-31 11:30:02 -0700230 Content License</a>.
231<?cs /def ?><?cs
Ben Dodson4dbb28a2010-08-10 18:22:55 -0700232
Ben Dodson4dbb28a2010-08-10 18:22:55 -0700233def:custom_footerlinks() ?>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700234 <a href="<?cs var:toroot ?>about/android.html">About Android</a>
Dirk Dougherty29e93432015-05-05 18:17:13 -0700235 <a href="<?cs var:toroot ?>auto/index.html">Auto</a>
236 <a href="<?cs var:toroot ?>tv/index.html">TV</a>
237 <a href="<?cs var:toroot ?>wear/index.html">Wear</a>
238 <a href="<?cs var:toroot ?>legal.html">Legal</a>
smain@google.com4f3a05a2016-08-31 11:30:02 -0700239<?cs /def ?><?cs
Ben Dodson4dbb28a2010-08-10 18:22:55 -0700240
smain@google.com4f3a05a2016-08-31 11:30:02 -0700241# appears on the right side of the blue bar at the bottom off every page ?><?cs
242def:custom_buildinfo() ?>
243 <?cs if:!google && !reference.gcm && !reference.gms ?>
244 Android <?cs var:sdk.version ?>&nbsp;r<?cs var:sdk.rel.id ?> &mdash;
245 <?cs /if ?>
246 <script src="<?cs var:toroot ?>timestamp.js" type="text/javascript"></script>
247 <script>document.write(BUILD_TIMESTAMP)</script>
Dan Willemsen0f40baf2016-10-12 00:10:33 -0700248<?cs /def ?>