blob: d5a6960dcc1746de2ca1eb59543b096f73ed8fd5 [file] [log] [blame]
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -08001<?cs def:body_content_wrap_start() ?>
2 <div class="wrap clearfix" id="body-content">
3<?cs /def ?>
Dirk Dougherty0dc81b92015-12-08 14:49:52 -08004
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -08005<?cs def:fullpage() ?>
Dirk Dougherty541b4942014-02-14 18:31:53 -08006 <div id="body-content">
Dirk Dougherty0dc81b92015-12-08 14:49:52 -08007 <div>
Dirk Dougherty541b4942014-02-14 18:31:53 -08008<?cs /def ?>
Dirk Dougherty08032402014-02-15 10:14:35 -08009
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080010<?cs # The default side navigation for the reference docs ?>
11<?cs def:reference_default_nav() ?>
12 <!-- Fullscreen toggler -->
13 <button data-fullscreen class="dac-nav-fullscreen">
14 <i class="dac-sprite dac-fullscreen"></i>
15 </button>
Dirk Dougherty541b4942014-02-14 18:31:53 -080016
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080017 <script>$('[data-fullscreen]').dacFullscreen();</script>
18 <!-- End: Fullscreen toggler -->
19
20 <?cs if:reference.gcm || reference.gms ?>
21 <?cs include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?>
22 <script type="text/javascript">
23 showGoogleRefTree();
Dirk Dougherty541b4942014-02-14 18:31:53 -080024 </script>
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080025 <?cs else ?>
26 <div id="devdoc-nav">
Dirk Dougherty541b4942014-02-14 18:31:53 -080027 <div id="api-nav-header">
28 <div id="api-level-toggle">
29 <label for="apiLevelCheckbox" class="disabled"
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080030 title="Select your target API level to dim unavailable APIs">API level: </label>
Dirk Dougherty541b4942014-02-14 18:31:53 -080031 <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>
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080038 </div><!-- end nav header -->
Dirk Dougherty541b4942014-02-14 18:31:53 -080039 <script>
Dirk Dougherty0dc81b92015-12-08 14:49:52 -080040 var SINCE_DATA = [ <?cs
41 each:since = since ?>'<?cs
42 var:since.name ?>'<?cs
Dirk Dougherty541b4942014-02-14 18:31:53 -080043 if:!last(since) ?>, <?cs /if ?><?cs
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080044 /each
45 ?> ];
Dirk Dougherty541b4942014-02-14 18:31:53 -080046 buildApiLevelSelector();
47 </script>
Dirk Dougherty0dc81b92015-12-08 14:49:52 -080048
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080049 <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>
Dirk Dougherty541b4942014-02-14 18:31:53 -080053
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080054 <?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 ?>
Dirk Dougherty541b4942014-02-14 18:31:53 -080073 </div>
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080074 </div>
75 <?cs /if ?>
76<?cs /def ?>
Dirk Dougherty541b4942014-02-14 18:31:53 -080077
Dirk Dougherty0dc81b92015-12-08 14:49:52 -080078<?cs
79def:ndk_nav() ?>
80 <div class="wrap clearfix" id="body-content"><div class="cols">
81 <div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
82 <?cs call:mobile_nav_toggle() ?>
83 <div class="dac-toggle-content" id="devdoc-nav">
84 <div class="scroll-pane">
85<?cs
86if:guide ?><?cs include:"../../../../frameworks/base/docs/html/ndk/guides/guides_toc.cs" ?><?cs
87elif:reference ?><?cs include:"../../../../frameworks/base/docs/html/ndk/reference/reference_toc.cs" ?><?cs
88elif:downloads ?><?cs include:"../../../../frameworks/base/docs/html/ndk/downloads/downloads_toc.cs" ?><?cs
89elif:samples ?><?cs include:"../../../../frameworks/base/docs/html/ndk/samples/samples_toc.cs" ?><?cs
90/if ?>
91 </div>
92 </div>
93 </div> <!-- end side-nav -->
Dirk Dougherty0dc81b92015-12-08 14:49:52 -080094<?cs /def ?>
Scott Main7a6ab432014-05-09 10:00:14 -070095
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -080096<?cs def:header_search_widget() ?>
97 <form data-search class="dac-header-search">
98 <button class="dac-header-search-close" data-search-close>
99 <i class="dac-sprite dac-back-arrow"></i>
100 </button>
Scott Main7a6ab432014-05-09 10:00:14 -0700101
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800102 <div class="dac-header-search-inner">
103 <i class="dac-sprite dac-search-white dac-header-search-icon"></i>
104 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" class="dac-header-search-input" placeholder="Search" />
105 <button class="dac-header-search-clear dac-hidden" data-search-clear>
106 <i class="dac-sprite dac-close-black"></i>
107 </button>
Scott Main7a6ab432014-05-09 10:00:14 -0700108 </div>
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800109 </form>
110<?cs /def ?>
111
112<?cs def:search_results() ?>
113 <div id="search-results" class="dac-search-results">
114 <div id="dac-search-results-history" class="dac-search-results-history">
115 <div class="wrap dac-search-results-history-wrap">
116 <div class="cols">
117 <div class="col-1of2 col-tablet-1of2 col-mobile-1of1">
118 <h2>Most visited</h2>
119 <div class="resource-flow-layout" data-history-query="history:most/visited" data-maxresults="3" data-cardsizes="18x2"></div>
120 </div>
121
122 <div class="col-1of2 col-tablet-1of2 col-mobile-1of1">
123 <h2>Recently visited</h2>
124 <div class="resource-flow-layout cols" data-history-query="history:recent" data-allow-duplicates="true" data-maxresults="3" data-cardsizes="18x2"></div>
125 </div>
126 </div>
Scott Main7a6ab432014-05-09 10:00:14 -0700127 </div>
128 </div>
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800129
130 <div id="dac-search-results-content" class="dac-search-results-content">
131 <div class="dac-search-results-metadata wrap">
132 <div class="dac-search-results-for">
133 <h2>Results for <span id="search-results-for"></span></h2>
134 </div>
135
136 <div id="dac-search-results-hero"></div>
137
138 <div class="dac-search-results-hero cols">
smain@google.com38b0e222016-03-16 11:30:53 -0700139 <div id="dac-search-results-reference" class="col-3of6 col-tablet-1of2 col-mobile-1of1">
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800140 <div class="suggest-card reference no-display">
141 <ul class="dac-search-results-reference">
142 </ul>
143 </div>
144 </div>
smain@google.com38b0e222016-03-16 11:30:53 -0700145 <div id="dac-custom-search-results"></div>
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800146 </div>
147 </div>
smain@google.com38b0e222016-03-16 11:30:53 -0700148
Scott Main7a6ab432014-05-09 10:00:14 -0700149 </div>
150 </div>
Scott Main7a6ab432014-05-09 10:00:14 -0700151<?cs /def ?>
152
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800153<?cs def:custom_left_nav() ?>
154 <?cs if:(!fullpage && !nonavpage) || forcelocalnav ?>
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 <div class="dac-nav-sub dac-swap-section dac-right dac-active" itemscope itemtype="http://schema.org/SiteNavigationElement">
159 <?cs if:ndk ?>
160 <?cs if:guide ?>
161 <?cs include:"../../../../frameworks/base/docs/html/ndk/guides/guides_toc.cs" ?>
162 <?cs elif:reference ?>
163 <?cs include:"../../../../frameworks/base/docs/html/ndk/reference/reference_toc.cs" ?>
164 <?cs elif:downloads ?>
165 <?cs include:"../../../../frameworks/base/docs/html/ndk/downloads/downloads_toc.cs" ?>
166 <?cs elif:samples ?>
167 <?cs include:"../../../../frameworks/base/docs/html/ndk/samples/samples_toc.cs" ?>
168 <?cs else ?>
169 <?cs call:reference_default_nav() ?>
170 <?cs /if ?>
171 <?cs elif:guide ?>
172 <?cs include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?>
173 <?cs elif:design ?>
174 <?cs include:"../../../../frameworks/base/docs/html/design/design_toc.cs" ?>
175 <?cs elif:training ?>
176 <?cs include:"../../../../frameworks/base/docs/html/training/training_toc.cs" ?>
177 <?cs elif:tools ?>
178 <?cs include:"../../../../frameworks/base/docs/html/tools/tools_toc.cs" ?>
179 <?cs elif:google ?>
180 <?cs include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?>
181 <?cs elif:samples ?>
182 <?cs include:"../../../../frameworks/base/docs/html/samples/samples_toc.cs" ?>
Dirk Dougherty86120022016-02-09 18:00:05 -0800183 <?cs elif:preview ?>
184 <?cs include:"../../../../frameworks/base/docs/html/preview/preview_toc.cs" ?>
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800185 <?cs elif:distribute ?>
186 <?cs if:googleplay ?>
187 <?cs include:"../../../../frameworks/base/docs/html/distribute/googleplay/googleplay_toc.cs" ?>
188 <?cs elif:essentials ?>
189 <?cs include:"../../../../frameworks/base/docs/html/distribute/essentials/essentials_toc.cs" ?>
190 <?cs elif:users ?>
191 <?cs include:"../../../../frameworks/base/docs/html/distribute/users/users_toc.cs" ?>
192 <?cs elif:engage ?>
193 <?cs include:"../../../../frameworks/base/docs/html/distribute/engage/engage_toc.cs" ?>
194 <?cs elif:monetize ?>
195 <?cs include:"../../../../frameworks/base/docs/html/distribute/monetize/monetize_toc.cs" ?>
196 <?cs elif:analyze ?>
197 <?cs include:"../../../../frameworks/base/docs/html/distribute/analyze/analyze_toc.cs" ?>
198 <?cs elif:disttools ?>
199 <?cs include:"../../../../frameworks/base/docs/html/distribute/tools/disttools_toc.cs" ?>
200 <?cs elif:stories ?>
201 <?cs include:"../../../../frameworks/base/docs/html/distribute/stories/stories_toc.cs" ?>
202 <?cs /if ?>
203 <?cs elif:about ?>
204 <?cs include:"../../../../frameworks/base/docs/html/about/about_toc.cs" ?>
205 <?cs else ?>
206 <?cs call:reference_default_nav() ?>
207 <?cs /if ?>
208 </div>
209 <?cs /if ?>
210<?cs /def ?>
Scott Main7a6ab432014-05-09 10:00:14 -0700211
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800212<?cs # appears at the bottom of every page ?>
213<?cs def:custom_cc_copyright() ?>
Dirk Dougherty0dc81b92015-12-08 14:49:52 -0800214 Except as noted, this content is
Dirk Dougherty541b4942014-02-14 18:31:53 -0800215 licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
Dirk Dougherty0dc81b92015-12-08 14:49:52 -0800216 Creative Commons Attribution 2.5</a>. For details and
217 restrictions, see the <a href="<?cs var:toroot ?>license.html">Content
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800218 License</a>.
219<?cs /def ?>
Dirk Dougherty541b4942014-02-14 18:31:53 -0800220
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800221<?cs def:custom_copyright() ?>
Dirk Dougherty541b4942014-02-14 18:31:53 -0800222 Except as noted, this content is licensed under <a
Dirk Dougherty0dc81b92015-12-08 14:49:52 -0800223 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
Dirk Dougherty541b4942014-02-14 18:31:53 -0800224 For details and restrictions, see the <a href="<?cs var:toroot ?>license.html">
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800225 Content License</a>.
226<?cs /def ?>
Dirk Dougherty541b4942014-02-14 18:31:53 -0800227
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800228<?cs def:custom_footerlinks() ?>
229 <a href="<?cs var:toroot ?>about/android.html">About Android</a>
Dirk Dougherty0dc81b92015-12-08 14:49:52 -0800230 <a href="<?cs var:toroot ?>auto/index.html">Auto</a>
231 <a href="<?cs var:toroot ?>tv/index.html">TV</a>
232 <a href="<?cs var:toroot ?>wear/index.html">Wear</a>
233 <a href="<?cs var:toroot ?>legal.html">Legal</a>
Dirk Dougherty541b4942014-02-14 18:31:53 -0800234<?cs /def ?>
235
Dirk Dougherty6f10d4d2015-11-07 11:34:59 -0800236<?cs # appears on the right side of the blue bar at the bottom off every page ?>
237<?cs def:custom_buildinfo() ?>
238 <?cs if:!google && !reference.gcm && !reference.gms ?>
239 Android <?cs var:sdk.version ?>&nbsp;r<?cs var:sdk.rel.id ?> &mdash;
240 <?cs /if ?>
241 <script src="<?cs var:toroot ?>timestamp.js" type="text/javascript"></script>
242 <script>document.write(BUILD_TIMESTAMP)</script>
243<?cs /def ?>