Merge all of templates-sdk-dev into templates-sdk.
I actually just deleted templates-sdk/ then made a copy of templates-sdk-dev/ and then renamed it to templates-sdk/. So this is a clean copy. Once this goes through cleanly, I'll delete templates-sdk-dev/ and update all doc targets to use templates-sdk/. Change-Id: I276695969e02fcf718370564e84b077a9d43725e
Before Width: | Height: | Size: 513 B After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 860 B After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 880 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 670 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 11 KiB |
|
@ -2763,4 +2763,10 @@ jQuery.effects||function(a,b){function c(b){var c;return b&&b.constructor==Array
|
|||
* https://github.com/jquery/jquery-ui
|
||||
* Includes: jquery.effects.transfer.js
|
||||
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
|
||||
(function(a,b){a.effects.transfer=function(b){return this.queue(function(){var c=a(this),d=a(b.options.to),e=d.offset(),f={top:e.top,left:e.left,height:d.innerHeight(),width:d.innerWidth()},g=c.offset(),h=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:g.top,left:g.left,height:c.innerHeight(),width:c.innerWidth(),position:"absolute"}).animate(f,b.duration,b.options.easing,function(){h.remove(),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}})(jQuery);;
|
||||
(function(a,b){a.effects.transfer=function(b){return this.queue(function(){var c=a(this),d=a(b.options.to),e=d.offset(),f={top:e.top,left:e.left,height:d.innerHeight(),width:d.innerWidth()},g=c.offset(),h=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:g.top,left:g.left,height:c.innerHeight(),width:c.innerWidth(),position:"absolute"}).animate(f,b.duration,b.options.easing,function(){h.remove(),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}})(jQuery);;
|
||||
/*! (c) 2012 Airbnb, Inc.
|
||||
*
|
||||
* polyglot.js 0.4.3 may be freely distributed under the terms of the BSD
|
||||
* license. For all licensing information, details, and documention:
|
||||
* http://airbnb.github.com/polyglot.js */
|
||||
(function(e,t){typeof define=="function"&&define.amd?define([],function(){return t(e)}):typeof exports=="object"?module.exports=t(e):e.Polyglot=t(e)})(this,function(e){"use strict";function t(e){e=e||{},this.phrases={},this.extend(e.phrases||{}),this.currentLocale=e.locale||"en",this.allowMissing=!!e.allowMissing,this.warn=e.warn||c}function s(e){var t,n,r,i={};for(t in e)if(e.hasOwnProperty(t)){n=e[t];for(r in n)i[n[r]]=t}return i}function o(e){var t=/^\s+|\s+$/g;return e.replace(t,"")}function u(e,t,r){var i,s,u;return r!=null&&e?(s=e.split(n),u=s[f(t,r)]||s[0],i=o(u)):i=e,i}function a(e){var t=s(i);return t[e]||t.en}function f(e,t){return r[a(e)](t)}function l(e,t){for(var n in t)n!=="_"&&t.hasOwnProperty(n)&&(e=e.replace(new RegExp("%\\{"+n+"\\}","g"),t[n]));return e}function c(t){e.console&&e.console.warn&&e.console.warn("WARNING: "+t)}function h(e){var t={};for(var n in e)t[n]=e[n];return t}t.VERSION="0.4.3",t.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},t.prototype.extend=function(e,t){var n;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],t&&(r=t+"."+r),typeof n=="object"?this.extend(n,r):this.phrases[r]=n)},t.prototype.clear=function(){this.phrases={}},t.prototype.replace=function(e){this.clear(),this.extend(e)},t.prototype.t=function(e,t){var n,r;return t=t==null?{}:t,typeof t=="number"&&(t={smart_count:t}),typeof this.phrases[e]=="string"?n=this.phrases[e]:typeof t._=="string"?n=t._:this.allowMissing?n=e:(this.warn('Missing translation for key: "'+e+'"'),r=e),typeof n=="string"&&(t=h(t),r=u(n,this.currentLocale,t.smart_count),r=l(r,t)),r},t.prototype.has=function(e){return e in this.phrases};var n="||||",r={chinese:function(e){return 0},german:function(e){return e!==1?1:0},french:function(e){return e>1?1:0},russian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){return e===1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0}},i={chinese:["fa","id","ja","ko","lo","ms","th","tr","zh"],german:["da","de","en","es","fi","el","he","hu","it","nl","no","pt","sv"],french:["fr","tl","pt-br"],russian:["hr","ru"],czech:["cs"],polish:["pl"],icelandic:["is"]};return t});
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<body class="gc-documentation <?cs
|
||||
if:(reference.gms || reference.gcm)
|
||||
?>google<?cs
|
||||
/if ?><?cs
|
||||
if:(guide||develop||training||reference||tools||sdk)
|
||||
?>develop<?cs
|
||||
if:reference
|
||||
?> reference api apilevel-<?cs var:class.since ?><?cs var:package.since ?><?cs
|
||||
/if ?><?cs
|
||||
elif:design
|
||||
?>design<?cs
|
||||
elif:distribute
|
||||
?>distribute<?cs
|
||||
/if ?>">
|
||||
<div id="doc-api-level" class="<?cs var:class.since ?><?cs var:package.since ?>" style="display:none"></div>
|
|
@ -1,34 +1,27 @@
|
|||
<?cs include:"doctype.cs" ?>
|
||||
<?cs # THIS CREATES A LIST OF ALL PACKAGES AND NAMES IT packages.html ?>
|
||||
<?cs include:"macros.cs" ?>
|
||||
<?cs include:"macros_override.cs" ?>
|
||||
<?cs include:"doctype.cs" ?>
|
||||
<html<?cs if:devsite ?> devsite<?cs /if ?>>
|
||||
<?cs include:"head_tag.cs" ?>
|
||||
<body class="gc-documentation <?cs if:(reference.gms || reference.gcm) ?>google<?cs /if ?>
|
||||
<?cs if:(guide||develop||training||reference||tools||sdk) ?>develop<?cs
|
||||
if:reference ?> reference<?cs
|
||||
/if ?><?cs
|
||||
elif:design ?>design<?cs
|
||||
elif:distribute ?>distribute<?cs
|
||||
/if ?>" itemscope itemtype="http://schema.org/Article">
|
||||
<a name="top"></a>
|
||||
<?cs include:"body_tag.cs" ?>
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
<div class="col-12" id="doc-col">
|
||||
|
||||
<div id="jd-header">
|
||||
<h1><?cs var:page.title ?></h1>
|
||||
</div>
|
||||
<p>These are the API classes. See all
|
||||
<a href="packages.html">API packages</a>.</p>
|
||||
|
||||
<div id="jd-content">
|
||||
<p>These are the Android API classes. See all <a href="packages.html">API packages</a>.</p>
|
||||
<div class="jd-letterlist"><?cs each:letter=docs.classes ?>
|
||||
<a href="#letter_<?cs name:letter ?>"><?cs name:letter ?></a> <?cs /each?>
|
||||
<div class="jd-letterlist"><?cs
|
||||
each:letter=docs.classes ?>
|
||||
<a href="#letter_<?cs name:letter ?>"><?cs
|
||||
name:letter ?></a> <?cs
|
||||
/each?>
|
||||
</div>
|
||||
|
||||
<?cs each:letter=docs.classes ?>
|
||||
<?cs set:count = #1 ?>
|
||||
<h2 id="letter_<?cs name:letter ?>"><?cs name:letter ?></h2>
|
||||
<table class="jd-sumtable">
|
||||
<table>
|
||||
<?cs set:cur_row = #0 ?>
|
||||
<?cs each:cl = letter ?>
|
||||
<tr class="<?cs if:count % #2 ?>alt-color<?cs /if ?> api apilevel-<?cs var:cl.since ?>" >
|
||||
|
@ -43,12 +36,34 @@
|
|||
</table>
|
||||
<?cs /each ?>
|
||||
|
||||
</div><!-- end jd-content -->
|
||||
<?cs if:devsite ?>
|
||||
<div class="data-reference-resources-wrapper">
|
||||
<?cs if:subcount(class.package) ?>
|
||||
<ul data-reference-resources>
|
||||
<?cs call:list("Annotations", class.package.annotations) ?>
|
||||
<?cs call:list("Interfaces", class.package.interfaces) ?>
|
||||
<?cs call:list("Classes", class.package.classes) ?>
|
||||
<?cs call:list("Enums", class.package.enums) ?>
|
||||
<?cs call:list("Exceptions", class.package.exceptions) ?>
|
||||
<?cs call:list("Errors", class.package.errors) ?>
|
||||
</ul>
|
||||
<?cs elif:subcount(package) ?>
|
||||
<ul data-reference-resources>
|
||||
<?cs call:class_link_list("Annotations", package.annotations) ?>
|
||||
<?cs call:class_link_list("Interfaces", package.interfaces) ?>
|
||||
<?cs call:class_link_list("Classes", package.classes) ?>
|
||||
<?cs call:class_link_list("Enums", package.enums) ?>
|
||||
<?cs call:class_link_list("Exceptions", package.exceptions) ?>
|
||||
<?cs call:class_link_list("Errors", package.errors) ?>
|
||||
</ul>
|
||||
<?cs /if ?>
|
||||
</div>
|
||||
<?cs /if ?>
|
||||
|
||||
|
||||
<?cs if:!devsite ?>
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div><!-- end doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
<?cs /if ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,55 +1,8 @@
|
|||
<?cs def:custom_masthead() ?>
|
||||
<a name="top"></a>
|
||||
|
||||
<!-- dialog to prompt lang pref change when loaded from hardcoded URL
|
||||
<div id="langMessage" style="display:none">
|
||||
<div>
|
||||
<div class="lang en">
|
||||
<p>You requested a page in English, would you like to proceed with this language setting?</p>
|
||||
</div>
|
||||
<div class="lang es">
|
||||
<p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p>
|
||||
</div>
|
||||
<div class="lang ja">
|
||||
<p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p>
|
||||
</div>
|
||||
<div class="lang ko">
|
||||
<p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p>
|
||||
</div>
|
||||
<div class="lang ru">
|
||||
<p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p>
|
||||
</div>
|
||||
<div class="lang zh-cn">
|
||||
<p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p>
|
||||
</div>
|
||||
<div class="lang zh-tw">
|
||||
<p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p>
|
||||
</div>
|
||||
<a href="#" class="button yes" onclick="return false;">
|
||||
<span class="lang en">Yes</span>
|
||||
<span class="lang es">Sí</span>
|
||||
<span class="lang ja">Yes</span>
|
||||
<span class="lang ko">Yes</span>
|
||||
<span class="lang ru">Yes</span>
|
||||
<span class="lang zh-cn">是的</span>
|
||||
<span class="lang zh-tw">没有</span>
|
||||
</a>
|
||||
<a href="#" class="button" onclick="$('#langMessage').hide();return false;">
|
||||
<span class="lang en">No</span>
|
||||
<span class="lang es">No</span>
|
||||
<span class="lang ja">No</span>
|
||||
<span class="lang ko">No</span>
|
||||
<span class="lang ru">No</span>
|
||||
<span class="lang zh-cn">没有</span>
|
||||
<span class="lang zh-tw">没有</span>
|
||||
</a>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<?cs if:!devsite ?><?cs # leave out the global header for devsite; it is in devsite template ?>
|
||||
<a name="top"></a>
|
||||
<!-- Header -->
|
||||
<div id="header-wrapper">
|
||||
<div class="dac-header" id="header"><?cs call:butter_bar() ?>
|
||||
<div class="dac-header <?cs if:ndk ?>dac-ndk<?cs /if ?>" id="header">
|
||||
<div class="dac-header-inner">
|
||||
<a class="dac-nav-toggle" data-dac-toggle-nav href="javascript:;" title="Open navigation">
|
||||
<span class="dac-nav-hamburger">
|
||||
|
@ -58,9 +11,10 @@
|
|||
<span class="dac-nav-hamburger-bot"></span>
|
||||
</span>
|
||||
</a>
|
||||
<?cs if:ndk ?><a class="dac-header-logo" href="<?cs var:toroot ?>ndk/index.html">
|
||||
<img class="dac-header-logo-image" src="<?cs var:toroot ?>assets/images/android_logo_ndk.png"
|
||||
srcset="<?cs var:toroot ?>assets/images/android_logo_ndk@2x.png 2x"
|
||||
<?cs if:ndk ?><a class="dac-header-logo" style="width:144px;" href="<?cs var:toroot
|
||||
?>ndk/index.html">
|
||||
<img class="dac-header-logo-image" src="<?cs var:toroot ?>assets/images/android_logo.png"
|
||||
srcset="<?cs var:toroot ?>assets/images/android_logo@2x.png 2x"
|
||||
width="32" height="36" alt="Android" /> NDK
|
||||
</a><?cs else ?><a class="dac-header-logo" href="<?cs var:toroot ?>index.html">
|
||||
<img class="dac-header-logo-image" src="<?cs var:toroot ?>assets/images/android_logo.png"
|
||||
|
@ -68,33 +22,107 @@
|
|||
width="32" height="36" alt="Android" /> Developers
|
||||
</a><?cs /if ?>
|
||||
|
||||
<ul class="dac-header-crumbs">
|
||||
<?cs # More <li> elements added here with javascript ?>
|
||||
<?cs if:!section.landing ?><li class="dac-header-crumbs-item"><span class="dac-header-crumbs-link current <?cs
|
||||
if:ndk ?>ndk<?cs /if ?>"><?cs var:page.title ?></a></li><?cs
|
||||
/if ?>
|
||||
</ul>
|
||||
<?cs if:ndk
|
||||
?><ul class="dac-header-tabs">
|
||||
<li>
|
||||
<a href="<?cs var:toroot ?>ndk/guides/index.html" class="dac-header-tab"
|
||||
zh-tw-lang="API 指南"
|
||||
zh-cn-lang="API 指南"
|
||||
ru-lang="Руководства по API"
|
||||
ko-lang="API 가이드"
|
||||
ja-lang="API ガイド"
|
||||
es-lang="Guías de la API">Guides</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?cs var:toroot ?>ndk/reference/index.html" class="dac-header-tab"
|
||||
zh-tw-lang="參考資源"
|
||||
zh-cn-lang="参考"
|
||||
ru-lang="Справочник"
|
||||
ko-lang="참조문서"
|
||||
ja-lang="リファレンス"
|
||||
es-lang="Referencia">Reference</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?cs var:toroot ?>ndk/samples/index.html" class="dac-header-tab"
|
||||
>Samples</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?cs var:toroot ?>ndk/downloads/index.html" class="dac-header-tab"
|
||||
>Downloads</a>
|
||||
</li>
|
||||
</ul><?cs else
|
||||
?><?cs
|
||||
#
|
||||
# For the reference only docs, include just one tab
|
||||
#
|
||||
?><?cs if:referenceonly
|
||||
?><ul class="dac-header-tabs">
|
||||
<li><a href="<?cs var:toroot ?>reference/packages.html" class="dac-header-tab"><?cs
|
||||
if:sdk.preview
|
||||
?>Android <?cs var:sdk.codename ?>
|
||||
Preview <?cs var:sdk.preview.version ?><?cs
|
||||
else
|
||||
?>Android <?cs var:sdk.version ?>
|
||||
r<?cs var:sdk.rel.id ?><?cs
|
||||
/if ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
<?cs else ?><?cs
|
||||
#
|
||||
# End reference only docs, now the online DAC tabs...
|
||||
#
|
||||
?><ul class="dac-header-tabs">
|
||||
<li>
|
||||
<a class="dac-header-tab" href="<?cs var:toroot ?>design/index.html"
|
||||
zh-tw-lang="設計"
|
||||
zh-cn-lang="设计"
|
||||
ru-lang="Проектирование"
|
||||
ko-lang="디자인"
|
||||
ja-lang="設計"
|
||||
es-lang="Diseñar">Design</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dac-header-tab" href="<?cs var:toroot ?>develop/index.html"
|
||||
zh-tw-lang="開發"
|
||||
zh-cn-lang="开发"
|
||||
ru-lang="Разработка"
|
||||
ko-lang="개발"
|
||||
ja-lang="開発"
|
||||
es-lang="Desarrollar">Develop</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dac-header-tab" href="<?cs var:toroot ?>distribute/index.html"
|
||||
zh-tw-lang="發佈"
|
||||
zh-cn-lang="分发"
|
||||
ru-lang="Распространение"
|
||||
ko-lang="배포"
|
||||
ja-lang="配布"
|
||||
es-lang="Distribuir">Distribute</a>
|
||||
</li>
|
||||
</ul><?cs
|
||||
/if ?><?cs
|
||||
#
|
||||
# End if/else reference only docs
|
||||
#
|
||||
?><?cs
|
||||
/if ?><?cs # end if/else ndk ?>
|
||||
|
||||
<?cs # ADD SEARCH AND MENU ?>
|
||||
<?cs if:!ndk ?>
|
||||
<?cs call:header_search_widget() ?>
|
||||
<?cs /if ?>
|
||||
|
||||
<?cs if:ndk ?><a class="dac-header-console-btn" href="//developer.android.com">
|
||||
<span class="dac-visible-desktop-inline">Back to Android Developers</span>
|
||||
<?cs if:ndk ?><a class="dac-header-console-btn" href="http://developer.android.com">
|
||||
Back to Android Developers
|
||||
</a><?cs else ?><a class="dac-header-console-btn" href="https://play.google.com/apps/publish/">
|
||||
<span class="dac-sprite dac-google-play"></span>
|
||||
<span class="dac-visible-desktop-inline">Developer</span>
|
||||
Console
|
||||
</a><?cs /if ?>
|
||||
</a><?cs /if ?><?cs
|
||||
|
||||
# ADD SEARCH AND MENU ?><?cs
|
||||
if:!ndk ?><?cs
|
||||
if:!referenceonly ?><?cs
|
||||
call:header_search_widget() ?><?cs
|
||||
/if ?><?cs
|
||||
/if ?>
|
||||
</div><!-- end header-wrap.wrap -->
|
||||
</div><!-- end header -->
|
||||
|
||||
<div id="searchResults" class="wrap" style="display:none;">
|
||||
<h2 id="searchTitle">Results</h2>
|
||||
<div id="leftSearchControl" class="search-control">Loading...</div>
|
||||
</div>
|
||||
</div> <!--end header-wrapper -->
|
||||
|
||||
<?cs if:ndk ?>
|
||||
|
@ -102,14 +130,10 @@
|
|||
<nav class="dac-nav">
|
||||
<div class="dac-nav-dimmer" data-dac-toggle-nav></div>
|
||||
|
||||
<ul class="dac-nav-list" data-dac-nav>
|
||||
<li class="dac-nav-item dac-nav-head">
|
||||
<a class="dac-nav-link dac-nav-logo" data-dac-toggle-nav href="javascript:;" title="Close navigation">
|
||||
<img class="dac-logo-image" src="<?cs var:toroot ?>assets/images/android_logo_ndk.png"
|
||||
srcset="<?cs var:toroot ?>assets/images/android_logo_ndk@2x.png 2x"
|
||||
width="32" height="36" alt="Android" /> NDK
|
||||
</a>
|
||||
</li>
|
||||
<div class="dac-nav-sidebar" data-swap data-dynamic="false" data-transition-speed="300" data-dac-nav>
|
||||
<div data-swap-container>
|
||||
<?cs call:custom_left_nav() ?>
|
||||
<ul id="dac-main-navigation" class="dac-nav-list dac-swap-section dac-left dac-no-anim">
|
||||
<li class="dac-nav-item guides">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>ndk/guides/index.html"
|
||||
zh-tw-lang="API 指南"
|
||||
|
@ -136,185 +160,163 @@
|
|||
<a class="dac-nav-link" href="<?cs var:toroot ?>ndk/downloads/index.html"
|
||||
>Downloads</a>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<!-- end NDK navigation-->
|
||||
|
||||
|
||||
|
||||
<?cs else ?>
|
||||
<!-- Standard DAC Navigation-->
|
||||
<!-- Navigation-->
|
||||
<nav class="dac-nav">
|
||||
<div class="dac-nav-dimmer" data-dac-toggle-nav></div>
|
||||
|
||||
<ul class="dac-nav-list" data-dac-nav>
|
||||
<li class="dac-nav-item dac-nav-head">
|
||||
<a class="dac-nav-link dac-nav-logo" data-dac-toggle-nav href="javascript:;" title="Close navigation">
|
||||
<img class="dac-logo-image" src="<?cs var:toroot ?>assets/images/android_logo.png"
|
||||
srcset="<?cs var:toroot ?>assets/images/android_logo@2x.png 2x"
|
||||
width="32" height="36" alt="Android" /> Developers
|
||||
</a>
|
||||
</li><?cs
|
||||
#
|
||||
# For the reference only docs, include just one tab
|
||||
#
|
||||
?><?cs if:referenceonly ?>
|
||||
<li class="dac-nav-item develop">
|
||||
<a class="dac-nav-link has-subnav" href="<?cs var:toroot ?>reference/packages.html" zh-tw-lang="參考資源"
|
||||
zh-cn-lang="参考" ru-lang="Справочник" ko-lang="참조문서" ja-lang="リファレンス"
|
||||
es-lang="Referencia">API Reference</a>
|
||||
<div class="dac-nav-secondary develop">
|
||||
<h1 style="font-size: 20px; line-height: 24px; margin: 20px; color:#444"
|
||||
><?cs
|
||||
if:sdk.preview
|
||||
?>Android <?cs var:sdk.codename ?>
|
||||
Preview <?cs var:sdk.preview.version ?><?cs
|
||||
else
|
||||
?>Android <?cs var:sdk.version ?>
|
||||
r<?cs var:sdk.rel.id ?><?cs
|
||||
/if ?></h1>
|
||||
<div class="dac-nav-sidebar" data-swap data-dynamic="false" data-transition-speed="300" data-dac-nav>
|
||||
<div <?cs if:!referenceonly ?>data-swap-container<?cs /if ?>>
|
||||
<?cs call:custom_left_nav() ?>
|
||||
<?cs if:!referenceonly ?>
|
||||
<ul id="dac-main-navigation" class="dac-nav-list dac-swap-section dac-left dac-no-anim">
|
||||
<li class="dac-nav-item home">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>index.html">Home</a>
|
||||
<i class="dac-sprite dac-expand-more-black dac-nav-sub-slider"></i>
|
||||
<ul class="dac-nav-secondary about">
|
||||
<li class="dac-nav-item versions">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>about/versions/nougat/index.html">Android</a>
|
||||
</li>
|
||||
<li class="dac-nav-item wear">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>wear/index.html">Wear</a>
|
||||
</li>
|
||||
<li class="dac-nav-item tv">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>tv/index.html">TV</a>
|
||||
</li>
|
||||
<li class="dac-nav-item auto">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>auto/index.html">Auto</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dac-nav-item design">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>design/index.html"
|
||||
zh-tw-lang="設計"
|
||||
zh-cn-lang="设计"
|
||||
ru-lang="Проектирование"
|
||||
ko-lang="디자인"
|
||||
ja-lang="設計"
|
||||
es-lang="Diseñar">Design</a>
|
||||
</li>
|
||||
<li class="dac-nav-item develop">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>develop/index.html"
|
||||
zh-tw-lang="開發"
|
||||
zh-cn-lang="开发"
|
||||
ru-lang="Разработка"
|
||||
ko-lang="개발"
|
||||
ja-lang="開発"
|
||||
es-lang="Desarrollar">Develop</a>
|
||||
<i class="dac-sprite dac-expand-more-black dac-nav-sub-slider"></i>
|
||||
<ul class="dac-nav-secondary develop">
|
||||
<li class="dac-nav-item training">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>training/index.html"
|
||||
zh-tw-lang="訓練課程"
|
||||
zh-cn-lang="培训"
|
||||
ru-lang="Курсы"
|
||||
ko-lang="교육"
|
||||
ja-lang="トレーニング"
|
||||
es-lang="Capacitación">Training</a>
|
||||
</li>
|
||||
<li class="dac-nav-item guide">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>guide/index.html"
|
||||
zh-tw-lang="API 指南"
|
||||
zh-cn-lang="API 指南"
|
||||
ru-lang="Руководства по API"
|
||||
ko-lang="API 가이드"
|
||||
ja-lang="API ガイド"
|
||||
es-lang="Guías de la API">API Guides</a>
|
||||
</li>
|
||||
<li class="dac-nav-item reference">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>reference/packages.html"
|
||||
zh-tw-lang="參考資源"
|
||||
zh-cn-lang="参考"
|
||||
ru-lang="Справочник"
|
||||
ko-lang="참조문서"
|
||||
ja-lang="リファレンス"
|
||||
es-lang="Referencia">Reference</a>
|
||||
</li>
|
||||
<li class="dac-nav-item tools">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>sdk/index.html"
|
||||
zh-tw-lang="相關工具"
|
||||
zh-cn-lang="工具"
|
||||
ru-lang="Инструменты"
|
||||
ko-lang="도구"
|
||||
ja-lang="ツール"
|
||||
es-lang="Herramientas">Tools</a></li>
|
||||
<li class="dac-nav-item google">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>google/index.html">Google Services</a>
|
||||
</li>
|
||||
<?cs if:android.hasSamples ?>
|
||||
<li class="dac-nav-item samples">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>samples/index.html">Samples</a>
|
||||
</li>
|
||||
<?cs /if ?>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dac-nav-item distribute">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/<?cs if:android.whichdoc == 'offline' ?>googleplay/<?cs /if ?>index.html"
|
||||
zh-tw-lang="發佈"
|
||||
zh-cn-lang="分发"
|
||||
ru-lang="Распространение"
|
||||
ko-lang="배포"
|
||||
ja-lang="配布"
|
||||
es-lang="Distribuir">Distribute</a>
|
||||
<i class="dac-sprite dac-expand-more-black dac-nav-sub-slider"></i>
|
||||
<ul class="dac-nav-secondary distribute">
|
||||
<li class="dac-nav-item googleplay">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/googleplay/index.html">Google Play</a></li>
|
||||
<li class="dac-nav-item essentials">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/essentials/index.html">Essentials</a></li>
|
||||
<li class="dac-nav-item users">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/users/index.html">Get Users</a></li>
|
||||
<li class="dac-nav-item engage">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/engage/index.html">Engage & Retain</a></li>
|
||||
<li class="dac-nav-item monetize">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/monetize/index.html">Earn</a>
|
||||
</li>
|
||||
<li class="dac-nav-item analyze">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/analyze/index.html">Analyze</a>
|
||||
</li>
|
||||
<li class="dac-nav-item stories">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/stories/index.html">Stories</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!--<li class="dac-nav-item preview">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>preview/index.html">Preview</a>
|
||||
</li>-->
|
||||
</ul>
|
||||
<?cs /if ?><?cs # end if referenceonly ?>
|
||||
</div>
|
||||
</li>
|
||||
<?cs else ?><?cs
|
||||
#
|
||||
# End reference only docs, now the online DAC tabs...
|
||||
#
|
||||
?><li class="dac-nav-item home">
|
||||
<a class="dac-nav-link dac-visible-mobile-block" href="<?cs var:toroot ?>index.html">Home</a>
|
||||
<ul class="dac-nav-secondary about">
|
||||
<li class="dac-nav-item about">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>about/index.html">Android</a>
|
||||
</li>
|
||||
<li class="dac-nav-item wear">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>wear/index.html">Wear</a>
|
||||
</li>
|
||||
<li class="dac-nav-item tv">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>tv/index.html">TV</a>
|
||||
</li>
|
||||
<li class="dac-nav-item auto">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>auto/index.html">Auto</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dac-nav-item design">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>design/index.html"
|
||||
zh-tw-lang="設計"
|
||||
zh-cn-lang="设计"
|
||||
ru-lang="Проектирование"
|
||||
ko-lang="디자인"
|
||||
ja-lang="設計"
|
||||
es-lang="Diseñar">Design</a>
|
||||
</li>
|
||||
<li class="dac-nav-item develop">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>develop/index.html"
|
||||
zh-tw-lang="開發"
|
||||
zh-cn-lang="开发"
|
||||
ru-lang="Разработка"
|
||||
ko-lang="개발"
|
||||
ja-lang="開発"
|
||||
es-lang="Desarrollar">Develop</a>
|
||||
<ul class="dac-nav-secondary develop">
|
||||
<li class="dac-nav-item training">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>training/index.html"
|
||||
zh-tw-lang="訓練課程"
|
||||
zh-cn-lang="培训"
|
||||
ru-lang="Курсы"
|
||||
ko-lang="교육"
|
||||
ja-lang="トレーニング"
|
||||
es-lang="Capacitación">Training</a>
|
||||
</li>
|
||||
<li class="dac-nav-item guide">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>guide/index.html"
|
||||
zh-tw-lang="API 指南"
|
||||
zh-cn-lang="API 指南"
|
||||
ru-lang="Руководства по API"
|
||||
ko-lang="API 가이드"
|
||||
ja-lang="API ガイド"
|
||||
es-lang="Guías de la API">API Guides</a>
|
||||
</li>
|
||||
<li class="dac-nav-item reference">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>reference/packages.html"
|
||||
zh-tw-lang="參考資源"
|
||||
zh-cn-lang="参考"
|
||||
ru-lang="Справочник"
|
||||
ko-lang="참조문서"
|
||||
ja-lang="リファレンス"
|
||||
es-lang="Referencia">Reference</a>
|
||||
</li>
|
||||
<li class="dac-nav-item tools">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>sdk/index.html"
|
||||
zh-tw-lang="相關工具"
|
||||
zh-cn-lang="工具"
|
||||
ru-lang="Инструменты"
|
||||
ko-lang="도구"
|
||||
ja-lang="ツール"
|
||||
es-lang="Herramientas">Tools</a></li>
|
||||
<li class="dac-nav-item google">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>google/index.html">Google Services</a>
|
||||
</li>
|
||||
<?cs if:android.hasSamples ?>
|
||||
<li class="dac-nav-item samples">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>samples/index.html">Samples</a>
|
||||
</li><?cs /if ?>
|
||||
<li class="dac-nav-item preview">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>preview/index.html">Preview</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dac-nav-item distribute">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/<?cs if:android.whichdoc == 'offline' ?>googleplay/<?cs /if ?>index.html"
|
||||
zh-tw-lang="發佈"
|
||||
zh-cn-lang="分发"
|
||||
ru-lang="Распространение"
|
||||
ko-lang="배포"
|
||||
ja-lang="配布"
|
||||
es-lang="Distribuir">Distribute</a>
|
||||
<ul class="dac-nav-secondary distribute">
|
||||
<li class="dac-nav-item googleplay">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/googleplay/index.html">Google Play</a></li>
|
||||
<li class="dac-nav-item essentials">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/essentials/index.html">Essentials</a></li>
|
||||
<li class="dac-nav-item users">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/users/index.html">Get Users</a></li>
|
||||
<li class="dac-nav-item engage">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/engage/index.html">Engage & Retain</a></li>
|
||||
<li class="dac-nav-item monetize">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/monetize/index.html">Earn</a>
|
||||
</li>
|
||||
<li class="dac-nav-item analyze">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/analyze/index.html">Analyze</a>
|
||||
</li>
|
||||
<li class="dac-nav-item stories">
|
||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/stories/index.html">Stories</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li><?cs
|
||||
/if ?><?cs
|
||||
#
|
||||
# End if/else reference only docs
|
||||
#
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<!-- end navigation-->
|
||||
<?cs /if ?>
|
||||
<?cs /if ?><?cs # end if/else !devsite ?>
|
||||
|
||||
<!-- Nav Setup -->
|
||||
<script>$('[data-dac-nav]').dacNav();</script>
|
||||
|
||||
<?cs
|
||||
/def ?><?cs # end custom_masthead() ?>
|
||||
/def ?><?cs # end custom_masthead() ?><?cs
|
||||
|
||||
def:toast() ?><?cs
|
||||
|
||||
<?cs # (UN)COMMENT THE INSIDE OF THIS METHOD TO TOGGLE VISIBILITY ?>
|
||||
<?cs def:butter_bar() ?>
|
||||
# (UN)COMMENT TO TOGGLE VISIBILITY
|
||||
|
||||
<?cs # HIDE THE BUTTER BAR
|
||||
|
||||
<div style="height:20px"><!-- spacer to bump header down --></div>
|
||||
<div id="butterbar-wrapper">
|
||||
<div id="butterbar">
|
||||
<a href="//googleblog.blogspot.com/" id="butterbar-message">
|
||||
The Android 5.0 SDK will be available on October 17th!
|
||||
</a>
|
||||
<div class="dac-toast-group">
|
||||
<div class="dac-toast" data-toast>
|
||||
<div class="dac-toast-wrap">
|
||||
This is a demo notification <a href="#">Learn more</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
?>
|
||||
|
||||
<?cs /def ?>
|
||||
?><?cs
|
||||
/def ?>
|
|
@ -1,362 +1,33 @@
|
|||
<?cs
|
||||
def:mobile_nav_toggle() ?>
|
||||
<div class="dac-visible-mobile-block" data-toggle="section">
|
||||
<span class="dac-toggle-expand dac-devdoc-toggle"><i class="dac-sprite dac-expand-more-black"></i> Show navigation</span>
|
||||
<span class="dac-toggle-collapse dac-devdoc-toggle" data-toggle-section><i class="dac-sprite dac-expand-less-black"></i> Hide navigation</span>
|
||||
</div>
|
||||
<?cs def:body_content_wrap_start() ?>
|
||||
<div class="wrap clearfix" id="body-content">
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:fullpage() ?>
|
||||
<div id="body-content">
|
||||
<div>
|
||||
<?cs /def ?>
|
||||
<?cs
|
||||
def:sdk_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-4 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/sdk/sdk_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:no_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content">
|
||||
<div>
|
||||
<?cs /def ?><?cs
|
||||
# The default side navigation for the reference docs ?><?cs
|
||||
def:reference_default_nav() ?>
|
||||
<!-- Fullscreen toggler -->
|
||||
<button data-fullscreen class="dac-nav-fullscreen">
|
||||
<i class="dac-sprite dac-fullscreen"></i>
|
||||
</button>
|
||||
|
||||
def:tools_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/tools/tools_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
<script>$('[data-fullscreen]').dacFullscreen();</script>
|
||||
<!-- End: Fullscreen toggler -->
|
||||
|
||||
<?cs if:reference.gcm || reference.gms ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?>
|
||||
<script type="text/javascript">
|
||||
showGoogleRefTree();
|
||||
</script>
|
||||
<?cs /def ?>
|
||||
<?cs
|
||||
def:training_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-4 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/training/training_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:googleplay_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/googleplay/googleplay_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:preview_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-4 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/preview/preview_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:essentials_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/essentials/essentials_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:users_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/users/users_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:engage_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/engage/engage_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:analyze_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/analyze/analyze_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:monetize_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/monetize/monetize_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:disttools_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/tools/disttools_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:stories_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/stories/stories_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:guide_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-4 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?>
|
||||
<?cs
|
||||
def:design_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/design/design_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?>
|
||||
<?cs
|
||||
def:distribute_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/distribute_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?>
|
||||
|
||||
<?cs
|
||||
def:samples_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-4 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/samples/samples_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?>
|
||||
|
||||
<?cs
|
||||
def:google_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-4 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
showGoogleRefTree();
|
||||
|
||||
</script>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?>
|
||||
|
||||
<?cs
|
||||
def:about_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/about/about_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?>
|
||||
|
||||
|
||||
<?cs
|
||||
def:wear_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-4 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs call:mobile_nav_toggle() ?>
|
||||
<div class="dac-toggle-content" id="devdoc-nav">
|
||||
<div class="scroll-pane">
|
||||
<?cs include:"../../../../frameworks/base/docs/html/wear/wear_toc.cs" ?>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?>
|
||||
|
||||
|
||||
<?cs # The default side navigation for the reference docs ?><?cs
|
||||
def:default_left_nav() ?>
|
||||
<?cs if:reference.gcm || reference.gms ?>
|
||||
<?cs call:google_nav() ?>
|
||||
<?cs else ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-4 dac-hidden-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<div id="devdoc-nav">
|
||||
<?cs else ?>
|
||||
<div id="devdoc-nav">
|
||||
<div id="api-nav-header">
|
||||
<div id="api-level-toggle">
|
||||
<label for="apiLevelCheckbox" class="disabled"
|
||||
title="Select your target API level to dim unavailable APIs">API level: </label>
|
||||
title="Select your target API level to dim unavailable APIs">API level: </label>
|
||||
<div class="select-wrapper">
|
||||
<select id="apiLevelSelector">
|
||||
<!-- option elements added by buildApiLevelSelector() -->
|
||||
|
@ -364,98 +35,46 @@ def:default_left_nav() ?>
|
|||
</div>
|
||||
</div><!-- end toggle -->
|
||||
<div id="api-nav-title">Android APIs</div>
|
||||
</div><!-- end nav header -->
|
||||
</div><!-- end nav header -->
|
||||
<script>
|
||||
var SINCE_DATA = [ <?cs
|
||||
each:since = since ?>'<?cs
|
||||
var:since.name ?>'<?cs
|
||||
if:!last(since) ?>, <?cs /if ?><?cs
|
||||
/each
|
||||
?> ];
|
||||
/each
|
||||
?> ];
|
||||
buildApiLevelSelector();
|
||||
</script>
|
||||
|
||||
<div id="swapper">
|
||||
<div id="nav-panels">
|
||||
<div id="resize-packages-nav">
|
||||
<div id="packages-nav" class="scroll-pane">
|
||||
<div class="dac-reference-nav" data-reference-tree>
|
||||
<ul class="dac-reference-nav-list" data-reference-namespaces>
|
||||
<?cs call:package_link_list(docs.packages) ?>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<?cs call:package_link_list(docs.packages) ?>
|
||||
</ul><br/>
|
||||
|
||||
</div> <!-- end packages-nav -->
|
||||
</div> <!-- end resize-packages -->
|
||||
<div id="classes-nav" class="scroll-pane">
|
||||
|
||||
|
||||
<?cs
|
||||
if:subcount(class.package) ?>
|
||||
<ul>
|
||||
<?cs call:list("Annotations", class.package.annotations) ?>
|
||||
<?cs call:list("Interfaces", class.package.interfaces) ?>
|
||||
<?cs call:list("Classes", class.package.classes) ?>
|
||||
<?cs call:list("Enums", class.package.enums) ?>
|
||||
<?cs call:list("Exceptions", class.package.exceptions) ?>
|
||||
<?cs call:list("Errors", class.package.errors) ?>
|
||||
</ul><?cs
|
||||
elif:subcount(package) ?>
|
||||
<ul>
|
||||
<?cs call:class_link_list("Annotations", package.annotations) ?>
|
||||
<?cs call:class_link_list("Interfaces", package.interfaces) ?>
|
||||
<?cs call:class_link_list("Classes", package.classes) ?>
|
||||
<?cs call:class_link_list("Enums", package.enums) ?>
|
||||
<?cs call:class_link_list("Exceptions", package.exceptions) ?>
|
||||
<?cs call:class_link_list("Errors", package.errors) ?>
|
||||
</ul><?cs
|
||||
else ?>
|
||||
<p style="padding:10px">Select a package to view its members</p><?cs
|
||||
/if ?><br/>
|
||||
|
||||
|
||||
</div><!-- end classes -->
|
||||
</div><!-- end nav-panels -->
|
||||
<div id="nav-tree" style="display:none" class="scroll-pane">
|
||||
<div id="tree-list"></div>
|
||||
</div><!-- end nav-tree -->
|
||||
</div><!-- end swapper -->
|
||||
<div id="nav-swap">
|
||||
<a class="fullscreen">fullscreen</a>
|
||||
<a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>
|
||||
<?cs if:subcount(class.package) ?>
|
||||
<ul data-reference-resources>
|
||||
<?cs call:list("Annotations", class.package.annotations) ?>
|
||||
<?cs call:list("Interfaces", class.package.interfaces) ?>
|
||||
<?cs call:list("Classes", class.package.classes) ?>
|
||||
<?cs call:list("Enums", class.package.enums) ?>
|
||||
<?cs call:list("Exceptions", class.package.exceptions) ?>
|
||||
<?cs call:list("Errors", class.package.errors) ?>
|
||||
</ul>
|
||||
<?cs elif:subcount(package) ?>
|
||||
<ul data-reference-resources>
|
||||
<?cs call:class_link_list("Annotations", package.annotations) ?>
|
||||
<?cs call:class_link_list("Interfaces", package.interfaces) ?>
|
||||
<?cs call:class_link_list("Classes", package.classes) ?>
|
||||
<?cs call:class_link_list("Enums", package.enums) ?>
|
||||
<?cs call:class_link_list("Exceptions", package.exceptions) ?>
|
||||
<?cs call:class_link_list("Errors", package.errors) ?>
|
||||
</ul>
|
||||
<?cs /if ?>
|
||||
</div>
|
||||
</div> <!-- end devdoc-nav -->
|
||||
</div> <!-- end side-nav -->
|
||||
<script type="text/javascript">
|
||||
// init fullscreen based on user pref
|
||||
var fullscreen = readCookie("fullscreen");
|
||||
if (fullscreen != 0) {
|
||||
if (fullscreen == "false") {
|
||||
toggleFullscreen(false);
|
||||
} else {
|
||||
toggleFullscreen(true);
|
||||
}
|
||||
}
|
||||
// init nav version for mobile
|
||||
if (isMobile) {
|
||||
swapNav(); // tree view should be used on mobile
|
||||
$('#nav-swap').hide();
|
||||
} else {
|
||||
chooseDefaultNav();
|
||||
if ($("#nav-tree").is(':visible')) {
|
||||
init_default_navtree("<?cs var:toroot ?>");
|
||||
}
|
||||
}
|
||||
// scroll the selected page into view
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("packages-nav");
|
||||
scrollIntoView("classes-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /if ?>
|
||||
<?cs
|
||||
/def ?>
|
||||
</div>
|
||||
<?cs /if ?>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
<?cs
|
||||
def:ndk_nav() ?>
|
||||
<div class="wrap clearfix" id="body-content"><div class="cols">
|
||||
<div class="col-3 dac-toggle dac-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
|
@ -471,150 +90,159 @@ elif:samples ?><?cs include:"../../../../frameworks/base/docs/html/ndk/samples/s
|
|||
</div>
|
||||
</div>
|
||||
</div> <!-- end side-nav -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
scrollIntoView("devdoc-nav");
|
||||
});
|
||||
</script>
|
||||
<?cs /def ?>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
<?cs
|
||||
def:header_search_widget() ?>
|
||||
<div class="dac-header-search" id="search-container">
|
||||
<div class="dac-header-search-inner">
|
||||
<div class="dac-sprite dac-search dac-header-search-btn" id="search-btn"></div>
|
||||
<form class="dac-header-search-form" onsubmit="return submit_search()">
|
||||
<input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
|
||||
onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
|
||||
onkeydown="return search_changed(event, true, '<?cs var:toroot ?>')"
|
||||
onkeyup="return search_changed(event, false, '<?cs var:toroot ?>')"
|
||||
class="dac-header-search-input" placeholder="Search" />
|
||||
<a class="dac-header-search-close hide" id="search-close">close</a>
|
||||
</form>
|
||||
</div><!-- end dac-header-search-inner -->
|
||||
</div><!-- end dac-header-search -->
|
||||
<form data-search class="dac-header-search">
|
||||
<button class="dac-header-search-close" data-search-close>
|
||||
<i class="dac-sprite dac-back-arrow"></i>
|
||||
</button>
|
||||
|
||||
<div class="search_filtered_wrapper">
|
||||
<div class="suggest-card reference no-display">
|
||||
<ul class="search_filtered">
|
||||
</ul>
|
||||
<div class="dac-header-search-inner">
|
||||
<i class="dac-sprite dac-search-white dac-header-search-icon"></i>
|
||||
<input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" class="dac-header-search-input" placeholder="Search" />
|
||||
<button class="dac-header-search-clear dac-hidden" data-search-clear>
|
||||
<i class="dac-sprite dac-close-black"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="suggest-card develop no-display">
|
||||
<ul class="search_filtered">
|
||||
</ul>
|
||||
<div class="child-card guides no-display">
|
||||
</div>
|
||||
<div class="child-card training no-display">
|
||||
</div>
|
||||
<div class="child-card samples no-display">
|
||||
</form>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:search_results() ?>
|
||||
<div id="search-results" class="dac-search-results">
|
||||
<div id="dac-search-results-history" class="dac-search-results-history">
|
||||
<div class="wrap dac-search-results-history-wrap">
|
||||
<div class="cols">
|
||||
<div class="col-1of2 col-tablet-1of2 col-mobile-1of1">
|
||||
<h2>Most visited</h2>
|
||||
<div class="resource-flow-layout" data-history-query="history:most/visited" data-maxresults="3" data-cardsizes="18x2"></div>
|
||||
</div>
|
||||
|
||||
<div class="col-1of2 col-tablet-1of2 col-mobile-1of1">
|
||||
<h2>Recently visited</h2>
|
||||
<div class="resource-flow-layout cols" data-history-query="history:recent" data-allow-duplicates="true" data-maxresults="3" data-cardsizes="18x2"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="suggest-card design no-display">
|
||||
<ul class="search_filtered">
|
||||
</ul>
|
||||
</div>
|
||||
<div class="suggest-card distribute no-display">
|
||||
<ul class="search_filtered">
|
||||
</ul>
|
||||
|
||||
<div id="dac-search-results-content" class="dac-search-results-content">
|
||||
<div class="dac-search-results-metadata wrap">
|
||||
<div class="dac-search-results-for">
|
||||
<h2>Results for <span id="search-results-for"></span></h2>
|
||||
</div>
|
||||
|
||||
<div id="dac-search-results-hero"></div>
|
||||
|
||||
<div class="dac-search-results-hero cols">
|
||||
<div id="dac-search-results-reference" class="col-3of6 col-tablet-1of2 col-mobile-1of1">
|
||||
<div class="suggest-card reference no-display">
|
||||
<ul class="dac-search-results-reference">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="dac-custom-search-results"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?cs /def ?>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
def:custom_left_nav() ?>
|
||||
<?cs if:(!fullpage && !nonavpage) || forcelocalnav ?>
|
||||
<?cs if:!referenceonly ?>
|
||||
<a class="dac-nav-back-button dac-swap-section dac-up dac-no-anim" data-swap-button href="javascript:;">
|
||||
<i class="dac-sprite dac-nav-back"></i> <span class="dac-nav-back-title">Back</span>
|
||||
</a>
|
||||
<?cs /if ?>
|
||||
<div class="dac-nav-sub dac-swap-section dac-right dac-active" itemscope
|
||||
itemtype="http://schema.org/SiteNavigationElement" <?cs
|
||||
if:referenceonly ?>style="top:0 !important;"<?cs /if ?>>
|
||||
<?cs if:ndk ?>
|
||||
<?cs if:guide ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/ndk/guides/guides_toc.cs" ?>
|
||||
<?cs elif:reference ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/ndk/reference/reference_toc.cs" ?>
|
||||
<?cs elif:downloads ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/ndk/downloads/downloads_toc.cs" ?>
|
||||
<?cs elif:samples ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/ndk/samples/samples_toc.cs" ?>
|
||||
<?cs else ?>
|
||||
<?cs call:reference_default_nav() ?>
|
||||
<?cs /if ?>
|
||||
<?cs elif:guide ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?>
|
||||
<?cs elif:design ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/design/design_toc.cs" ?>
|
||||
<?cs elif:training ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/training/training_toc.cs" ?>
|
||||
<?cs elif:tools ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/tools/tools_toc.cs" ?>
|
||||
<?cs elif:google ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/google/google_toc.cs" ?>
|
||||
<?cs elif:samples ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/samples/samples_toc.cs" ?>
|
||||
<?cs elif:preview ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/preview/preview_toc.cs" ?>
|
||||
<?cs elif:preview ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/wear/preview/preview_toc.cs" ?>
|
||||
<?cs elif:distribute ?>
|
||||
<?cs if:googleplay ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/googleplay/googleplay_toc.cs" ?>
|
||||
<?cs elif:essentials ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/essentials/essentials_toc.cs" ?>
|
||||
<?cs elif:users ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/users/users_toc.cs" ?>
|
||||
<?cs elif:engage ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/engage/engage_toc.cs" ?>
|
||||
<?cs elif:monetize ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/monetize/monetize_toc.cs" ?>
|
||||
<?cs elif:analyze ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/analyze/analyze_toc.cs" ?>
|
||||
<?cs elif:disttools ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/tools/disttools_toc.cs" ?>
|
||||
<?cs elif:stories ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/distribute/stories/stories_toc.cs" ?>
|
||||
<?cs /if ?>
|
||||
<?cs elif:about ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/about/about_toc.cs" ?>
|
||||
<?cs else ?>
|
||||
<?cs call:reference_default_nav() ?>
|
||||
<?cs /if ?>
|
||||
</div>
|
||||
<?cs /if ?>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
<?cs
|
||||
def:custom_left_nav() ?><?cs
|
||||
if:ndk ?><?cs
|
||||
if:fullpage ?><?cs
|
||||
call:fullpage() ?><?cs
|
||||
elif:nonavpage ?><?cs
|
||||
call:no_nav() ?><?cs
|
||||
elif:guide || reference || samples || downloads ?><?cs
|
||||
call:ndk_nav() ?><?cs
|
||||
else ?><?cs
|
||||
call:default_left_nav() ?> <?cs
|
||||
/if ?><?cs
|
||||
else ?><?cs
|
||||
if:fullpage ?><?cs
|
||||
call:fullpage() ?><?cs
|
||||
elif:nonavpage ?><?cs
|
||||
call:no_nav() ?><?cs
|
||||
elif:guide ?><?cs
|
||||
call:guide_nav() ?><?cs
|
||||
elif:design ?><?cs
|
||||
call:design_nav() ?><?cs
|
||||
elif:training ?><?cs
|
||||
call:training_nav() ?><?cs
|
||||
elif:tools ?><?cs
|
||||
call:tools_nav() ?><?cs
|
||||
elif:google ?><?cs
|
||||
call:google_nav() ?><?cs
|
||||
elif:samples ?><?cs
|
||||
call:samples_nav() ?><?cs
|
||||
elif:preview ?><?cs
|
||||
call:preview_nav() ?><?cs
|
||||
elif:distribute ?><?cs
|
||||
if:googleplay ?><?cs
|
||||
call:googleplay_nav() ?><?cs
|
||||
elif:essentials ?><?cs
|
||||
call:essentials_nav() ?><?cs
|
||||
elif:users ?><?cs
|
||||
call:users_nav() ?><?cs
|
||||
elif:engage ?><?cs
|
||||
call:engage_nav() ?><?cs
|
||||
elif:monetize ?><?cs
|
||||
call:monetize_nav() ?><?cs
|
||||
elif:analyze ?><?cs
|
||||
call:analyze_nav() ?><?cs
|
||||
elif:disttools ?><?cs
|
||||
call:disttools_nav() ?><?cs
|
||||
elif:stories ?><?cs
|
||||
call:stories_nav() ?><?cs
|
||||
/if ?><?cs
|
||||
elif:about ?><?cs
|
||||
call:about_nav() ?><?cs
|
||||
elif:distribute ?><?cs
|
||||
call:distribute_nav() ?><?cs
|
||||
elif:wear ?><?cs
|
||||
call:wear_nav() ?><?cs
|
||||
else ?><?cs
|
||||
call:default_left_nav() ?> <?cs
|
||||
/if ?><?cs
|
||||
/if ?><?cs
|
||||
/def ?>
|
||||
|
||||
<?cs # appears at the bottom of every page ?><?cs
|
||||
# appears at the bottom of every page ?><?cs
|
||||
def:custom_cc_copyright() ?>
|
||||
Except as noted, this content is
|
||||
licensed under <a href="//creativecommons.org/licenses/by/2.5/">
|
||||
licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
|
||||
Creative Commons Attribution 2.5</a>. For details and
|
||||
restrictions, see the <a href="<?cs var:toroot ?>license.html">Content
|
||||
License</a>.<?cs
|
||||
/def ?>
|
||||
License</a>.
|
||||
<?cs /def ?><?cs
|
||||
|
||||
<?cs
|
||||
def:custom_copyright() ?>
|
||||
Except as noted, this content is licensed under <a
|
||||
href="//www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
|
||||
href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
|
||||
For details and restrictions, see the <a href="<?cs var:toroot ?>license.html">
|
||||
Content License</a>.<?cs
|
||||
/def ?>
|
||||
Content License</a>.
|
||||
<?cs /def ?><?cs
|
||||
|
||||
<?cs
|
||||
def:custom_footerlinks() ?>
|
||||
<a href="<?cs var:toroot ?>about/index.html">About Android</a>
|
||||
<a href="<?cs var:toroot ?>about/android.html">About Android</a>
|
||||
<a href="<?cs var:toroot ?>auto/index.html">Auto</a>
|
||||
<a href="<?cs var:toroot ?>tv/index.html">TV</a>
|
||||
<a href="<?cs var:toroot ?>wear/index.html">Wear</a>
|
||||
<a href="<?cs var:toroot ?>legal.html">Legal</a>
|
||||
<?cs
|
||||
/def ?>
|
||||
|
||||
<?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs
|
||||
def:custom_buildinfo() ?><?cs
|
||||
if:!google && !reference.gcm && !reference.gms ?>
|
||||
Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> — <?cs
|
||||
/if ?>
|
||||
<script src="<?cs var:toroot ?>timestamp.js" type="text/javascript"></script>
|
||||
<script>document.write(BUILD_TIMESTAMP)</script>
|
||||
<?cs /def ?>
|
||||
<?cs /def ?><?cs
|
||||
|
||||
# appears on the right side of the blue bar at the bottom off every page ?><?cs
|
||||
def:custom_buildinfo() ?>
|
||||
<?cs if:!google && !reference.gcm && !reference.gms ?>
|
||||
Android <?cs var:sdk.version ?> r<?cs var:sdk.rel.id ?> —
|
||||
<?cs /if ?>
|
||||
<script src="<?cs var:toroot ?>timestamp.js" type="text/javascript"></script>
|
||||
<script>document.write(BUILD_TIMESTAMP)</script>
|
||||
<?cs /def ?>
|
|
@ -7,12 +7,12 @@
|
|||
Android Design<?cs if:page.title ?> - <?cs var:page.title ?><?cs /if ?>
|
||||
</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic">
|
||||
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic">
|
||||
<link rel="stylesheet" href="<?cs var:toroot ?>assets/yui-3.3.0-reset-min.css">
|
||||
<link rel="stylesheet" href="<?cs var:toroot ?>assets/design/default.css?v=19">
|
||||
<link rel="stylesheet" href="<?cs var:toroot ?>assets/design/default.css">
|
||||
<script src="<?cs var:toroot ?>assets/jquery-1.6.2.min.js"></script>
|
||||
<script>var SITE_ROOT = '<?cs var:toroot ?>design';</script>
|
||||
<script src="<?cs var:toroot ?>assets/design/default.js?v=19"></script>
|
||||
<script src="<?cs var:toroot ?>assets/design/default.js"></script>
|
||||
</head>
|
||||
<body class="gc-documentation
|
||||
<?cs if:(guide||develop||training||reference||tools||sdk) ?>develop<?cs
|
||||
|
@ -42,10 +42,6 @@
|
|||
<?cs elif:header.title ?><h2><?cs var:header.title ?></h2>
|
||||
<?cs else ?><h2><?cs var:page.title ?></h2>
|
||||
<?cs /if ?>
|
||||
<div class="paging-links" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<a href="#" class="prev-page-link">Previous</a>
|
||||
<a href="#" class="next-page-link">Next</a>
|
||||
</div>
|
||||
</div>
|
||||
<?cs /if ?>
|
||||
|
||||
|
@ -70,16 +66,16 @@
|
|||
|
||||
<p id="copyright">
|
||||
Except as noted, this content is licensed under
|
||||
<a href="//creativecommons.org/licenses/by/2.5/">
|
||||
<a href="http://creativecommons.org/licenses/by/2.5/">
|
||||
Creative Commons Attribution 2.5</a>.<br>
|
||||
For details and restrictions, see the
|
||||
<a href="//developer.android.com/license.html">Content License</a>.
|
||||
<a href="http://developer.android.com/license.html">Content License</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="//www.android.com/terms.html">Site Terms of Service</a> –
|
||||
<a href="//www.android.com/privacy.html">Privacy Policy</a> –
|
||||
<a href="//www.android.com/branding.html">Brand Guidelines</a>
|
||||
<a href="http://www.android.com/terms.html">Site Terms of Service</a> –
|
||||
<a href="http://www.android.com/privacy.html">Privacy Policy</a> –
|
||||
<a href="http://www.android.com/branding.html">Brand Guidelines</a>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?cs include:"doctype.cs" ?>
|
||||
<?cs include:"macros.cs" ?>
|
||||
<html<?cs if:devsite ?> devsite<?cs /if ?>>
|
||||
<?cs if:!devsite ?><?cs
|
||||
include:"doctype.cs" ?><?cs /if ?><?cs
|
||||
include:"macros.cs" ?><html<?cs if:devsite ?> devsite<?cs /if ?>>
|
||||
<?cs include:"head_tag.cs" ?>
|
||||
<body class="gc-documentation
|
||||
|
||||
<?cs # add document classes for navigation header selection (and other stuff) ?>
|
||||
<body<?cs
|
||||
if:!devsite ?> class="gc-documentation<?cs
|
||||
# add document classes for navigation header selection (and other stuff) ?>
|
||||
<?cs
|
||||
if:(google || reference.gms || reference.gcm) ?>google <?cs /if ?><?cs
|
||||
if:ndk ?>ndk<?cs
|
||||
|
@ -13,10 +13,9 @@
|
|||
if:reference ?> reference<?cs /if ?><?cs
|
||||
if:downloads ?> downloads<?cs /if ?><?cs
|
||||
else ?><?cs
|
||||
if:(guide||develop||training||reference||tools||sdk||google||samples||preview) ?>develop<?cs
|
||||
if:(guide||develop||training||reference||tools||sdk||google||samples) ?>develop<?cs
|
||||
if:guide ?> guide<?cs /if ?><?cs
|
||||
if:samples ?> samples<?cs /if ?><?cs
|
||||
if:preview ?> preview<?cs /if ?><?cs
|
||||
elif:(distribute||googleplay||essentials||users||engage||monetize||disttools||stories||analyze) ?>distribute<?cs
|
||||
if:googleplay ?> googleplay<?cs /if ?><?cs
|
||||
if:essentials ?> essentials<?cs /if ?><?cs
|
||||
|
@ -26,29 +25,42 @@
|
|||
if:disttools ?> disttools<?cs /if ?><?cs
|
||||
if:stories ?> stories<?cs /if ?><?cs
|
||||
if:analyze ?> analyze<?cs /if ?><?cs
|
||||
elif:(about||wear||tv||auto) ?>about<?cs
|
||||
elif:design ?>design<?cs
|
||||
elif:(design||vision||material||patterns||devices||designdownloads) ?> design<?cs
|
||||
if:vision ?> vision<?cs /if ?><?cs
|
||||
if:material ?> material<?cs /if ?><?cs
|
||||
if:patterns ?> patterns<?cs /if ?><?cs
|
||||
if:devices ?> devices<?cs /if ?><?cs
|
||||
if:designdownloads ?> designdownloads<?cs /if ?><?cs
|
||||
elif:(about||versions||wear||tv||auto) ?> about<?cs
|
||||
if:versions ?> versions<?cs /if ?><?cs
|
||||
if:wear ?> wear<?cs /if ?><?cs
|
||||
if:tv ?> tv<?cs /if ?><?cs
|
||||
if:auto ?> auto<?cs /if ?><?cs
|
||||
elif:(preview) ?> preview<?cs
|
||||
/if ?><?cs
|
||||
if:page.trainingcourse ?> trainingcourse<?cs /if ?><?cs
|
||||
/if ?>" itemscope itemtype="http://schema.org/Article"><?cs
|
||||
include:"header.cs" ?>
|
||||
/if ?>" itemscope itemtype="http://schema.org/Article"><?cs
|
||||
/if ?>><?cs
|
||||
include:"header.cs" ?><?cs
|
||||
|
||||
<div <?cs
|
||||
if:fullpage
|
||||
?>class="fullpage"<?cs
|
||||
elif:(design||tools||about||sdk||googleplay||essentials||users||engage||monetize||disttools||stories) && !nonavpage
|
||||
?>class="col-13" id="doc-col"<?cs
|
||||
elif:!nonavpage
|
||||
?>class="col-12" id="doc-col"<?cs /if ?> >
|
||||
|
||||
<?cs if:(design||training||walkthru) && !page.trainingcourse && !page.article ?><?cs # header logic for docs that provide previous/next buttons ?>
|
||||
<?cs if:header.hide ?>
|
||||
<?cs else ?>
|
||||
<div class="content-header <?cs if:header.justLinks ?>just-links<?cs /if ?>">
|
||||
if:(design||training||walkthru) && !page.trainingcourse && !page.article ?><?cs
|
||||
# header logic for docs that provide previous/next buttons ?><?cs
|
||||
if:(header.hide||devsite) ?><?cs
|
||||
else ?>
|
||||
<div class="content-header <?cs if:header.justLinks ?>just-links<?cs /if ?>">
|
||||
<?cs if:header.justLinks ?>
|
||||
<?cs else ?><h1 itemprop="name"><?cs var:page.title ?></h1>
|
||||
<?cs /if ?>
|
||||
<?cs if:training ?>
|
||||
<?cs else ?>
|
||||
<ul class="dac-header-crumbs">
|
||||
<?cs # More <li> elements added here with javascript ?>
|
||||
</ul>
|
||||
|
||||
<!-- Breadcrumb Setup -->
|
||||
<script>$('.dac-nav-list').dacCurrentPage().dacCrumbs();</script>
|
||||
|
||||
<h1 itemprop="name"><?cs var:page.title ?>
|
||||
</h1><?cs
|
||||
/if ?><?cs
|
||||
if:training ?>
|
||||
<div class="training-nav-top" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<a href="#" class="prev-page-link hide"
|
||||
zh-tw-lang="上一堂課"
|
||||
|
@ -74,9 +86,9 @@ include:"header.cs" ?>
|
|||
ja-lang="開始する"
|
||||
es-lang="Empezar"
|
||||
>Get started</a>
|
||||
</div>
|
||||
<?cs elif:!page.trainingcourse ?>
|
||||
<div class="paging-links" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
</div><?cs
|
||||
elif:!page.trainingcourse ?>
|
||||
<?cs # <div class="paging-linkss" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<a href="#" class="prev-page-link hide"
|
||||
zh-tw-lang="上一堂課"
|
||||
zh-cn-lang="上一课"
|
||||
|
@ -93,12 +105,12 @@ include:"header.cs" ?>
|
|||
ja-lang="次へ"
|
||||
es-lang="Siguiente"
|
||||
>Next</a>
|
||||
</div>
|
||||
<?cs /if ?><?cs # end if training ?>
|
||||
</div> ?><?cs
|
||||
/if ?><?cs # end if training ?>
|
||||
</div>
|
||||
<?cs /if ?><?cs # end if header.hide ?>
|
||||
<?cs /if ?><?cs # end if header.hide ?><?cs
|
||||
|
||||
<?cs elif:samplesProjectIndex ?>
|
||||
elif:samplesProjectIndex ?>
|
||||
<div id="api-info-block">
|
||||
<div class="sum-details-links">
|
||||
Overview
|
||||
|
@ -108,18 +120,9 @@ include:"header.cs" ?>
|
|||
</div><!-- end breadcurmb block -->
|
||||
<h1 itemprop="name"><?cs var:projectDir ?></h1>
|
||||
|
||||
<?cs else ?>
|
||||
<?cs if:training ?>
|
||||
<?cs # horrible horrible hack to move TOC up when the next/prev links are not there ?>
|
||||
<style>
|
||||
#tb-wrapper {
|
||||
margin-top:6px;
|
||||
}
|
||||
</style>
|
||||
<?cs /if ?>
|
||||
|
||||
<?cs if:(!fullpage && !header.hide) ?>
|
||||
<?cs if:page.landing ?><?cs # header logic for docs that are landing pages ?>
|
||||
<?cs else ?><?cs
|
||||
if:(!fullpage && !header.hide && !devsite) ?><?cs
|
||||
if:page.landing ?><?cs # header logic for docs that are landing pages ?>
|
||||
<div class="landing-banner">
|
||||
<?cs if:page.landing.image ?><?cs # use two-column layout only if there is an image ?>
|
||||
<div class="cols">
|
||||
|
@ -137,8 +140,15 @@ include:"header.cs" ?>
|
|||
</div>
|
||||
<?cs /if ?>
|
||||
</div>
|
||||
<?cs else ?>
|
||||
<?cs if:tab1 ?><div id="title-tabs-wrapper"><?cs /if ?>
|
||||
<?cs else ?><?cs
|
||||
if:tab1 ?><div id="title-tabs-wrapper"><?cs /if ?>
|
||||
<ul class="dac-header-crumbs">
|
||||
<?cs # More <li> elements added here with javascript ?>
|
||||
</ul>
|
||||
|
||||
<!-- Breadcrumb Setup -->
|
||||
<p><script>$('.dac-nav-list').dacCurrentPage().dacCrumbs();</script></p>
|
||||
|
||||
<h1 itemprop="name" <?cs if:tab1 ?>class="with-title-tabs"<?cs /if ?>><?cs var:page.title ?></h1><?cs
|
||||
if:tab1 ?><ul id="title-tabs">
|
||||
<li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li>
|
||||
|
@ -148,24 +158,73 @@ include:"header.cs" ?>
|
|||
<li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?>
|
||||
</ul>
|
||||
<?cs /if ?>
|
||||
<?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?>
|
||||
<?cs /if ?>
|
||||
<?cs /if ?>
|
||||
<?cs /if ?><?cs # end if design ?>
|
||||
<?cs if:tab1 ?></div><!-- end tab-wrapper --><?cs /if ?><?cs
|
||||
/if ?><?cs
|
||||
/if ?><?cs
|
||||
/if ?><?cs # end if design ?><?cs
|
||||
|
||||
<?cs # THIS IS THE MAIN DOC CONTENT ?>
|
||||
if devsite ?><?cs
|
||||
if:tab1 ?>
|
||||
<div id="title-tabs-wrapper">
|
||||
<ul id="title-tabs">
|
||||
<li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li>
|
||||
<?cs if:tab2 ?>
|
||||
<li><a href="<?cs var:tab2.link ?>"><?cs var:tab2 ?></a></li><?cs /if ?>
|
||||
<?cs if:tab3 ?>
|
||||
<li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?>
|
||||
</ul>
|
||||
</div><!-- end tab-wrapper --><?cs
|
||||
/if ?><?cs
|
||||
/if ?><?cs
|
||||
|
||||
# THIS IS THE MAIN DOC CONTENT ?><?cs
|
||||
if:!devsite ?>
|
||||
<div id="jd-content">
|
||||
<div class="jd-descr" itemprop="articleBody"><?cs
|
||||
/if ?><?cs
|
||||
if:(!fullpage && !header.hide && devsite) ?><?cs
|
||||
if:page.landing ?><?cs # header logic for docs that are landing pages ?>
|
||||
<div class="landing-banner">
|
||||
<?cs if:page.landing.image ?><?cs # use two-column layout only if there is an image ?>
|
||||
<div class="cols">
|
||||
<div class="col-6">
|
||||
<img src="<?cs var:toroot ?><?cs var:page.landing.image ?>" alt="" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<?cs /if ?>
|
||||
<h1 itemprop="name" style="margin-bottom:0;"><?cs var:page.title ?></h1>
|
||||
<p itemprop="description"><?cs var:page.landing.intro ?></p>
|
||||
|
||||
<p><a class="next-page-link topic-start-link"></a></p><?cs
|
||||
if:page.landing.image ?>
|
||||
</div>
|
||||
</div><?cs
|
||||
/if ?>
|
||||
</div><?cs
|
||||
/if ?><?cs
|
||||
/if ?>
|
||||
|
||||
<div class="jd-descr" itemprop="articleBody">
|
||||
<?cs call:tag_list(root.descr) ?>
|
||||
</div>
|
||||
<?cs call:tag_list(root.descr) ?><?cs
|
||||
|
||||
<?cs if:!fullscreen && (design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?>
|
||||
if:!devsite ?>
|
||||
</div><!-- end jd-descr --><?cs
|
||||
/if ?><?cs
|
||||
|
||||
if:!fullscreen && (design||training||walkthru) && !page.landing && !page.trainingcourse
|
||||
&& !footer.hide && !devsite?>
|
||||
<div class="content-footer <?cs
|
||||
if:fullpage ?>wrap<?cs /if ?>"
|
||||
itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<div class="paging-links">
|
||||
<a href="#" class="prev-page-link hide"
|
||||
zh-tw-lang="上一堂課"
|
||||
zh-cn-lang="上一课"
|
||||
ru-lang="Предыдущий"
|
||||
ko-lang="이전"
|
||||
ja-lang="前へ"
|
||||
es-lang="Anterior"
|
||||
><span class="page-link-caption">Previous</span>
|
||||
</a>
|
||||
<a href="#" class="next-page-link hide"
|
||||
zh-tw-lang="下一堂課"
|
||||
zh-cn-lang="下一课"
|
||||
|
@ -173,7 +232,8 @@ include:"header.cs" ?>
|
|||
ko-lang="다음"
|
||||
ja-lang="次へ"
|
||||
es-lang="Siguiente"
|
||||
>Next</a>
|
||||
><span class="page-link-caption">Next</span>
|
||||
</a>
|
||||
<a href="#" class="start-class-link hide"
|
||||
zh-tw-lang="開始上課"
|
||||
zh-cn-lang="开始"
|
||||
|
@ -182,22 +242,20 @@ include:"header.cs" ?>
|
|||
ja-lang="開始する"
|
||||
es-lang="Empezar"
|
||||
>Get started</a>
|
||||
<a href="#" class="next-class-link hide">Next class</a>
|
||||
<a href="#" class="next-class-link hide">
|
||||
<span class="page-link-caption">Next class</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?cs /if ?>
|
||||
|
||||
</div> <!-- end jd-content -->
|
||||
</div><?cs
|
||||
/if ?><?cs
|
||||
if:!devsite ?>
|
||||
</div> <!-- end jd-content --><?cs
|
||||
/if ?><?cs
|
||||
|
||||
if:!devsite ?>
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div><!-- end doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
<script src="https://developer.android.com/ytblogger_lists_unified.js?v=19" type="text/javascript"></script>
|
||||
<script src="<?cs var:toroot ?>jd_lists_unified.js?v=19" type="text/javascript"></script>
|
||||
<script src="<?cs var:toroot ?>jd_extras.js?v=19" type="text/javascript"></script>
|
||||
<script src="<?cs var:toroot ?>jd_collections.js?v=19" type="text/javascript"></script>
|
||||
<script src="<?cs var:toroot ?>jd_tag_helpers.js?v=19" type="text/javascript"></script>
|
||||
<?cs /if ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,19 +1,20 @@
|
|||
<?cs # page footer content ?>
|
||||
<div class="wrap">
|
||||
<div class="dac-footer<?cs if:fullpage ?> dac-landing<?cs /if ?>">
|
||||
<div class="cols dac-footer-main">
|
||||
<div class="col-1of2">
|
||||
<a class="dac-footer-getnews" data-modal-toggle="newsletter" href="javascript:;">Get news & tips <span
|
||||
<a class="dac-footer-getnews" id="newsletter" data-modal-toggle="newsletter" href="javascript:;">Get news & tips <span
|
||||
class="dac-fab dac-primary"><i class="dac-sprite dac-mail"></i></span></a>
|
||||
</div>
|
||||
<div class="col-1of2 dac-footer-reachout">
|
||||
<div class="dac-footer-contact">
|
||||
<a class="dac-footer-contact-link" href="//android-developers.blogspot.com/">Blog</a>
|
||||
<a class="dac-footer-contact-link" href="http://android-developers.blogspot.com/">Blog</a>
|
||||
<a class="dac-footer-contact-link" href="/support.html">Support</a>
|
||||
</div>
|
||||
<div class="dac-footer-social">
|
||||
<a class="dac-fab dac-footer-social-link" href="https://www.youtube.com/user/androiddevelopers"><i class="dac-sprite dac-youtube"></i></a>
|
||||
<a class="dac-fab dac-footer-social-link" href="https://plus.google.com/+AndroidDevelopers"><i class="dac-sprite dac-gplus"></i></a>
|
||||
<a class="dac-fab dac-footer-social-link" href="https://twitter.com/AndroidDev"><i class="dac-sprite dac-twitter"></i></a>
|
||||
<a class="dac-button-social dac-youtube dac-footer-social-link" href="https://www.youtube.com/user/androiddevelopers"><i class="dac-sprite dac-youtube"></i></a>
|
||||
<a class="dac-button-social dac-gplus dac-footer-social-link" href="https://plus.google.com/+AndroidDevelopers"><i class="dac-sprite dac-gplus"></i></a>
|
||||
<a class="dac-button-social dac-twitter dac-footer-social-link" href="https://twitter.com/AndroidDev"><i class="dac-sprite dac-twitter"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -34,7 +35,7 @@
|
|||
<?cs /if ?>
|
||||
|
||||
<p class="dac-footer-links">
|
||||
<a href="/about/index.html">About Android</a>
|
||||
<a href="/about/android.html">About Android</a>
|
||||
<a href="/auto/index.html">Auto</a>
|
||||
<a href="/tv/index.html">TV</a>
|
||||
<a href="/wear/index.html">Wear</a>
|
||||
|
@ -56,48 +57,54 @@
|
|||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div> <!-- end footer -->
|
||||
</div>
|
||||
<!-- end footer -->
|
||||
|
||||
<?cs call:toast() ?>
|
||||
|
||||
<div data-modal="newsletter" data-newsletter data-swap class="dac-modal newsletter">
|
||||
<div class="dac-modal-container">
|
||||
<div class="dac-modal-window">
|
||||
<header class="dac-modal-header">
|
||||
<button class="dac-modal-header-close" data-modal-toggle><i class="dac-sprite dac-close"></i></button>
|
||||
<div class="dac-modal-header-actions">
|
||||
<button class="dac-modal-header-close" data-modal-toggle></button>
|
||||
</div>
|
||||
<div class="dac-swap" data-swap-container>
|
||||
<section class="dac-swap-section dac-active dac-down">
|
||||
<h2 class="norule dac-modal-header-title">Get the latest Android developer news and tips that will help you find success on Google Play.</h2>
|
||||
<p class="dac-modal-header-subtitle">* Required Fields</p>
|
||||
<h2 class="norule dac-modal-header-title" data-t="newsletter.title"></h2>
|
||||
<p class="dac-modal-header-subtitle" data-t="newsletter.requiredHint"></p>
|
||||
</section>
|
||||
<section class="dac-swap-section dac-up">
|
||||
<h2 class="norule dac-modal-header-title">Hooray!</h2>
|
||||
<h2 class="norule dac-modal-header-title" data-t="newsletter.successTitle">Hooray!</h2>
|
||||
</section>
|
||||
</div>
|
||||
</header>
|
||||
<div class="dac-swap" data-swap-container>
|
||||
<section class="dac-swap-section dac-active dac-left">
|
||||
<form action="https://docs.google.com/forms/d/1QgnkzbEJIDu9lMEea0mxqWrXUJu0oBCLD7ar23V0Yys/formResponse" class="dac-form" method="post" target="dac-newsletter-iframe">
|
||||
<input type="hidden" name="entry.935454734" data-newsletter-language>
|
||||
<section class="dac-modal-content">
|
||||
<fieldset class="dac-form-fieldset">
|
||||
<div class="cols">
|
||||
<div class="col-1of2 newsletter-leftCol">
|
||||
<div class="dac-form-input-group">
|
||||
<label for="newsletter-full-name" class="dac-form-floatlabel">Full name</label>
|
||||
<label for="newsletter-full-name" class="dac-form-floatlabel" data-t="newsletter.name">Full name</label>
|
||||
<input type="text" class="dac-form-input" name="entry.1357890476" id="newsletter-full-name" required>
|
||||
<span class="dac-form-required">*</span>
|
||||
</div>
|
||||
<div class="dac-form-input-group">
|
||||
<label for="newsletter-email" class="dac-form-floatlabel">Email address</label>
|
||||
<label for="newsletter-email" class="dac-form-floatlabel" data-t="newsletter.email">Email address</label>
|
||||
<input type="email" class="dac-form-input" name="entry.472100832" id="newsletter-email" required>
|
||||
<span class="dac-form-required">*</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1of2 newsletter-rightCol">
|
||||
<div class="dac-form-input-group">
|
||||
<label for="newsletter-company" class="dac-form-floatlabel">Company / developer name</label>
|
||||
<label for="newsletter-company" class="dac-form-floatlabel" data-t="newsletter.company">Company / developer name</label>
|
||||
<input type="text" class="dac-form-input" name="entry.1664780309" id="newsletter-company">
|
||||
</div>
|
||||
<div class="dac-form-input-group">
|
||||
<label for="newsletter-play-store" class="dac-form-floatlabel">One of your Play Store app URLs</label>
|
||||
<label for="newsletter-play-store" class="dac-form-floatlabel" data-t="newsletter.appUrl">One of your Play Store app URLs</label>
|
||||
<input type="url" class="dac-form-input" name="entry.47013838" id="newsletter-play-store" required>
|
||||
<span class="dac-form-required">*</span>
|
||||
</div>
|
||||
|
@ -107,22 +114,22 @@
|
|||
<fieldset class="dac-form-fieldset">
|
||||
<div class="cols">
|
||||
<div class="col-1of2 newsletter-leftCol">
|
||||
<legend class="dac-form-legend">Which best describes your business:<span class="dac-form-required">*</span>
|
||||
<legend class="dac-form-legend"><span data-t="newsletter.business.label">Which best describes your business:</span><span class="dac-form-required">*</span>
|
||||
</legend>
|
||||
<div class="dac-form-radio-group">
|
||||
<input type="radio" value="Apps" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-app" required>
|
||||
<label for="newsletter-business-type-app" class="dac-form-radio-button"></label>
|
||||
<label for="newsletter-business-type-app" class="dac-form-label">Apps</label>
|
||||
<label for="newsletter-business-type-app" class="dac-form-label" data-t="newsletter.business.apps">Apps</label>
|
||||
</div>
|
||||
<div class="dac-form-radio-group">
|
||||
<input type="radio" value="Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-games" required>
|
||||
<label for="newsletter-business-type-games" class="dac-form-radio-button"></label>
|
||||
<label for="newsletter-business-type-games" class="dac-form-label">Games</label>
|
||||
<label for="newsletter-business-type-games" class="dac-form-label" data-t="newsletter.business.games">Games</label>
|
||||
</div>
|
||||
<div class="dac-form-radio-group">
|
||||
<input type="radio" value="Apps and Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-appsgames" required>
|
||||
<label for="newsletter-business-type-appsgames" class="dac-form-radio-button"></label>
|
||||
<label for="newsletter-business-type-appsgames" class="dac-form-label">Apps & Games</label>
|
||||
<label for="newsletter-business-type-appsgames" class="dac-form-label" data-t="newsletter.business.both">Apps & Games</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1of2 newsletter-rightCol newsletter-checkboxes">
|
||||
|
@ -133,7 +140,7 @@
|
|||
<label for="newsletter-add" class="dac-form-checkbox-button"></label>
|
||||
</div>
|
||||
<div class="dac-media-body">
|
||||
<label for="newsletter-add" class="dac-form-label dac-form-aside">Add me to the mailing list for the monthly newsletter and occasional emails about development and Google Play opportunities.<span class="dac-form-required">*</span></label>
|
||||
<label for="newsletter-add" class="dac-form-label dac-form-aside"><span data-t="newsletter.confirmMailingList"></span><span class="dac-form-required">*</span></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -144,7 +151,7 @@
|
|||
<label for="newsletter-terms" class="dac-form-checkbox-button"></label>
|
||||
</div>
|
||||
<div class="dac-media-body">
|
||||
<label for="newsletter-terms" class="dac-form-label dac-form-aside">I acknowledge that the information provided in this form will be subject to <a href="https://www.google.com/policies/privacy/">Google's privacy policy</a>.<span class="dac-form-required">*</span></label>
|
||||
<label for="newsletter-terms" class="dac-form-label dac-form-aside"><span data-t="newsletter.privacyPolicy" data-t-html></span><span class="dac-form-required">*</span></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -163,12 +170,50 @@
|
|||
</section>
|
||||
<section class="dac-swap-section dac-right">
|
||||
<div class="dac-modal-content">
|
||||
<p class="newsletter-success-message">
|
||||
You have successfully signed up for the latest Android developer news and tips.
|
||||
</p>
|
||||
<p class="newsletter-success-message" data-t="newsletter.successDetails"></p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end footer -->
|
||||
</div>
|
||||
<!-- end newsletter modal -->
|
||||
|
||||
<!-- start reset language header modal -->
|
||||
<div data-modal="langform" class="dac-modal" id="langform">
|
||||
<div class="dac-modal-container">
|
||||
<div class="dac-modal-window">
|
||||
<header class="dac-modal-header">
|
||||
<div class="dac-modal-header-actions">
|
||||
<button class="dac-modal-header-close" data-modal-toggle></button>
|
||||
</div>
|
||||
<section class="dac-swap-section dac-active dac-down">
|
||||
<h2 class="norule dac-modal-header-title"></h2>
|
||||
</section>
|
||||
</header>
|
||||
<section class="dac-swap-section dac-active dac-left">
|
||||
<section class="dac-modal-content">
|
||||
<fieldset class="dac-form-fieldset">
|
||||
<div class="cols">
|
||||
<div class="col-2of2 langform-leftCol">
|
||||
<p id="resetLangText"></p>
|
||||
<p id="resetLangCta"></p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
<footer class="dac-modal-footer" id="langfooter">
|
||||
<div class="cols">
|
||||
<div class="col-2of5">
|
||||
</div>
|
||||
</div>
|
||||
<button class="button dac-primary dac-modal-action lang yes" data-t="newsletter.resetLangButtonYes" data-modal-toggle></button>
|
||||
<button class="button dac-primary dac-modal-action lang no" data-t="newsletter.resetLangButtonNo" data-modal-toggle></button>
|
||||
</a>
|
||||
</footer>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end langreset modal -->
|
||||
|
|
|
@ -1,26 +1,161 @@
|
|||
<head>
|
||||
<?cs
|
||||
####### If building devsite, add some meta data needed for when generating the top nav ######### ?>
|
||||
<?cs
|
||||
if:devsite ?><?cs
|
||||
if:guide||develop||training||reference||tools||sdk||google||samples
|
||||
?><meta name="top_category" value="develop" /><?cs
|
||||
elif:google
|
||||
?><meta name="top_category" value="google" /><?cs
|
||||
elif:reference && !(reference.gms || reference.gcm)
|
||||
?><meta name="top_category" value="css-fullscreen" /><?cs
|
||||
/if ?>
|
||||
<?cs
|
||||
/if
|
||||
?><?cs
|
||||
# END if/else devsite ?>
|
||||
<title><?cs
|
||||
if:devsite ?><?cs
|
||||
if:page.title ?><?cs
|
||||
var:html_strip(page.title) ?><?cs
|
||||
else ?>Android Developers<?cs
|
||||
/if ?><?cs
|
||||
else ?><?cs
|
||||
if:page.title ?><?cs
|
||||
var:page.title ?> | <?cs
|
||||
/if ?>Android Developers
|
||||
<?cs /if ?><?cs
|
||||
# END if/else devsite ?></title><?cs
|
||||
####### If building devsite, add some meta data needed for when generating the top nav ######### ?><?cs
|
||||
if:devsite ?>
|
||||
<meta name="top_category" value="<?cs
|
||||
if:ndk ?>ndk<?cs
|
||||
elif:(guide||develop||training||reference||tools||sdk||google||reference.gms||reference.gcm||samples) ?>develop<?cs
|
||||
elif:(topic||libraries||instantapps||perf||arc) ?>develop<?cs
|
||||
elif:(distribute||googleplay||essentials||users||engage||monetize||disttools||stories||analyze) ?>distribute<?cs
|
||||
elif:(design||vision||material||patterns||devices||designdownloads) ?>design<?cs
|
||||
elif:(about||versions||wear||tv||auto) ?>about<?cs
|
||||
elif:wearpreview ?>about<?cs
|
||||
elif:work ?>about<?cs
|
||||
elif:preview ?>preview<?cs
|
||||
else ?>none<?cs
|
||||
/if ?>" /><?cs set:dac_subcategory_set = #1 ?>
|
||||
<meta name="subcategory" value="<?cs
|
||||
if:ndk ?><?cs
|
||||
if:guide ?>guide<?cs
|
||||
elif:samples ?>samples<?cs
|
||||
if:(samplesDocPage&&!samplesProjectIndex) ?> samples-docpage<?cs /if ?><?cs
|
||||
elif:reference ?>reference<?cs
|
||||
elif:downloads ?>downloads<?cs
|
||||
else ?>none<?cs set:dac_subcategory_set = #0 ?><?cs /if ?><?cs
|
||||
else ?><?cs
|
||||
if:(guide||develop||training||reference||tools||sdk||samples) ?><?cs
|
||||
if:guide ?>guide<?cs
|
||||
elif:training ?><?cs
|
||||
if:page.trainingcourse ?>trainingcourse<?cs
|
||||
else ?>training<?cs /if ?><?cs
|
||||
elif:reference ?>reference<?cs
|
||||
elif:samples ?>samples<?cs
|
||||
if:(samplesDocPage&&!samplesProjectIndex) ?> samples-docpage<?cs /if ?><?cs
|
||||
else ?>none<?cs set:dac_subcategory_set = #0 ?><?cs /if ?><?cs
|
||||
elif:(google||reference.gms||reference.gcm) ?>google<?cs
|
||||
elif:(topic||libraries||perf||arc) ?><?cs
|
||||
if:libraries ?>libraries<?cs
|
||||
elif:instantapps ?>instantapps<?cs
|
||||
elif:perf ?>perf<?cs
|
||||
elif:arc ?>arc<?cs
|
||||
else ?>none<?cs set:dac_subcategory_set = #0 ?><?cs /if ?><?cs
|
||||
elif:(distribute||googleplay||essentials||users||engage||monetize||disttools||stories||analyze) ?><?cs
|
||||
if:googleplay ?>googleplay<?cs
|
||||
elif:essentials ?>essentials<?cs
|
||||
elif:users ?>users<?cs
|
||||
elif:engage ?>engage<?cs
|
||||
elif:monetize ?>monetize<?cs
|
||||
elif:disttools ?>disttools<?cs
|
||||
elif:stories ?>stories<?cs
|
||||
elif:analyze ?>analyze<?cs
|
||||
else ?>none<?cs set:dac_subcategory_set = #0 ?><?cs /if ?><?cs
|
||||
elif:(about||versions||wear||tv||auto) ?>about<?cs
|
||||
elif:preview ?>preview<?cs
|
||||
elif:wearpreview ?>wear<?cs
|
||||
elif:work ?>work<?cs
|
||||
elif:design ?>design<?cs
|
||||
elif:walkthru ?>walkthru<?cs
|
||||
else ?>none<?cs set:dac_subcategory_set = #0 ?><?cs /if ?><?cs
|
||||
/if ?>" /><?cs
|
||||
if:nonavpage ?>
|
||||
<meta name="hide_toc" value='True' /><?cs
|
||||
elif: !nonavpage && dac_subcategory_set && !tools && !sdk ?>
|
||||
<meta name="book_path" value="<?cs
|
||||
if:ndk ?>/ndk<?cs
|
||||
if:guide ?>/guides<?cs
|
||||
elif:samples ?>/samples<?cs
|
||||
elif:reference ?>/reference<?cs
|
||||
elif:downloads ?>/downloads<?cs /if ?><?cs
|
||||
else ?><?cs
|
||||
if:(guide||develop||training||reference||tools||sdk||samples) ?><?cs
|
||||
if:guide ?>/guide<?cs
|
||||
elif:training ?>/training<?cs
|
||||
elif:reference ?>/reference<?cs
|
||||
elif:samples ?>/samples<?cs /if ?><?cs
|
||||
elif:(google||reference.gms||reference.gcm) ?>/google<?cs
|
||||
elif:(topic||libraries||perf) ?>/topic<?cs
|
||||
if:libraries ?>/libraries<?cs
|
||||
elif:instantapps ?>/instant-apps<?cs
|
||||
elif:perf ?>/performance<?cs
|
||||
elif:arc ?>/arc<?cs /if ?><?cs
|
||||
elif:(distribute||googleplay||essentials||users||engage||monetize||disttools||stories||analyze) ?>/distribute<?cs
|
||||
if:googleplay ?>/googleplay<?cs
|
||||
elif:essentials ?>/essentials<?cs
|
||||
elif:users ?>/users<?cs
|
||||
elif:engage ?>/engage<?cs
|
||||
elif:monetize ?>/monetize<?cs
|
||||
elif:disttools ?>/tools<?cs
|
||||
elif:stories ?>/stories<?cs
|
||||
elif:analyze ?>/analyze<?cs /if ?><?cs
|
||||
elif:(about||versions||wear||tv||auto) ?>/about<?cs
|
||||
elif:preview ?>/preview<?cs
|
||||
elif:wearpreview ?>/wear/preview<?cs
|
||||
elif:work ?>/work<?cs
|
||||
elif:design ?>/design<?cs
|
||||
elif:reference.testSupport ?>/reference/android/support/test<?cs
|
||||
elif:reference.wearableSupport ?>/reference/android/support/wearable<?cs
|
||||
elif:walkthru ?>/walkthru<?cs /if ?><?cs
|
||||
/if ?>/_book.yaml" /><?cs
|
||||
/if ?>
|
||||
<meta name="project_path" value="<?cs
|
||||
if:(guide||develop||training||reference||tools||sdk||samples) ?><?cs
|
||||
if:guide ?>/guide<?cs
|
||||
elif:training ?>/training<?cs
|
||||
elif:reference ?>/reference<?cs
|
||||
elif:samples ?>/samples<?cs /if ?><?cs
|
||||
elif:(google||reference.gms||reference.gcm) ?>/google<?cs
|
||||
elif:(topic||libraries) ?>/develop<?cs
|
||||
elif:(distribute||googleplay||essentials||users||engage||monetize||disttools||stories||analyze) ?>/distribute<?cs
|
||||
if:googleplay ?>/googleplay<?cs
|
||||
elif:essentials ?>/essentials<?cs
|
||||
elif:users ?>/users<?cs
|
||||
elif:engage ?>/engage<?cs
|
||||
elif:monetize ?>/monetize<?cs
|
||||
elif:disttools ?>/tools<?cs
|
||||
elif:stories ?>/stories<?cs
|
||||
elif:analyze ?>/analyze<?cs
|
||||
else ?><?cs /if ?><?cs
|
||||
elif:(about||versions||wear||tv||auto) ?>/about<?cs
|
||||
elif:wearpreview ?>/wear<?cs
|
||||
elif:work ?>/work<?cs
|
||||
elif:preview ?>/preview<?cs
|
||||
elif:design ?>/design<?cs /if ?>/_project.yaml" /><?cs
|
||||
|
||||
if:page.tags && page.tags != "" ?>
|
||||
<meta name="keywords" value='<?cs var:page.tags ?>' /><?cs
|
||||
/if ?><?cs
|
||||
if:meta.tags && meta.tags != "" ?>
|
||||
<meta name="meta_tags" value='<?cs var:meta.tags ?>' /><?cs
|
||||
/if ?><?cs
|
||||
if:fullpage ?>
|
||||
<meta name="full_width" value="True" /><?cs
|
||||
/if ?><?cs
|
||||
if:page.landing ?>
|
||||
<meta name="page_type" value="landing" /><?cs
|
||||
/if ?><?cs
|
||||
if:page.article ?>
|
||||
<meta name="page_type" value="article" /><?cs
|
||||
/if ?><?cs
|
||||
if:page.image ?>
|
||||
<meta name="image_path" value='<?cs var:page.image ?>' /><?cs
|
||||
/if ?><?cs
|
||||
/if ?><?cs # END if/else devsite ?><?cs
|
||||
|
||||
if:!devsite ?>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||
<?cs
|
||||
if:page.metaDescription ?>
|
||||
<meta name="Description" content="<?cs var:page.metaDescription ?>"><?cs
|
||||
/if ?>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="<?cs var:toroot ?>favicon.ico" />
|
||||
<link rel="alternate" href="http://developer.android.com/<?cs var:path.canonical ?>" hreflang="en" />
|
||||
<link rel="alternate" href="http://developer.android.com/intl/es/<?cs var:path.canonical ?>" hreflang="es" />
|
||||
|
@ -32,42 +167,32 @@
|
|||
<link rel="alternate" href="http://developer.android.com/intl/vi/<?cs var:path.canonical ?>" hreflang="vi" />
|
||||
<link rel="alternate" href="http://developer.android.com/intl/zh-cn/<?cs var:path.canonical ?>" hreflang="zh-cn" />
|
||||
<link rel="alternate" href="http://developer.android.com/intl/zh-tw/<?cs var:path.canonical ?>" hreflang="zh-tw" />
|
||||
<?cs /if ?><?cs
|
||||
# END if/else !devsite ?><?cs
|
||||
|
||||
<title><?cs
|
||||
if:page.title ?><?cs
|
||||
var:page.title ?> | <?cs
|
||||
/if ?>Android Developers</title>
|
||||
|
||||
if:page.metaDescription ?>
|
||||
<meta name="description" content="<?cs var:page.metaDescription ?>"><?cs
|
||||
/if ?><?cs
|
||||
if:!devsite ?>
|
||||
<!-- STYLESHEETS -->
|
||||
<link rel="stylesheet"
|
||||
href="<?cs
|
||||
if:android.whichdoc != 'online' ?>https:<?cs
|
||||
if:android.whichdoc != 'online' ?>http:<?cs
|
||||
/if ?>//fonts.googleapis.com/css?family=Roboto+Condensed">
|
||||
<link rel="stylesheet" href="<?cs
|
||||
if:android.whichdoc != 'online' ?>https:<?cs
|
||||
if:android.whichdoc != 'online' ?>http:<?cs
|
||||
/if ?>//fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold"
|
||||
title="roboto">
|
||||
<?cs
|
||||
if:ndk ?><link rel="stylesheet" href="<?cs
|
||||
if:android.whichdoc != 'online' ?>https:<?cs
|
||||
if:android.whichdoc != 'online' ?>http:<?cs
|
||||
/if ?>//fonts.googleapis.com/css?family=Roboto+Mono:400,500,700" title="roboto-mono" type="text/css"><?cs
|
||||
/if ?>
|
||||
<link href="<?cs var:toroot ?>assets/css/default.css?v=19" rel="stylesheet" type="text/css">
|
||||
|
||||
<?cs if:reference && !(reference.gms || reference.gcm || preview) ?>
|
||||
<!-- FULLSCREEN STYLESHEET -->
|
||||
<link href="<?cs var:toroot ?>assets/css/fullscreen.css" rel="stylesheet" class="fullscreen"
|
||||
type="text/css">
|
||||
<?cs /if ?>
|
||||
<link href="<?cs var:toroot ?>assets/css/default.css?v=16" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- JAVASCRIPT -->
|
||||
<script src="<?cs if:android.whichdoc != 'online' ?>https:<?cs /if ?>//www.google.com/jsapi" type="text/javascript"></script>
|
||||
<?cs
|
||||
if:devsite
|
||||
?><script src="<?cs var:toroot ?>_static/js/android_3p-bundle.js" type="text/javascript"></script><?cs
|
||||
else
|
||||
?><script src="<?cs var:toroot ?>assets/js/android_3p-bundle.js" type="text/javascript"></script><?cs
|
||||
/if ?><?cs
|
||||
<script src="<?cs if:android.whichdoc != 'online' ?>http:<?cs /if ?>//www.google.com/jsapi" type="text/javascript"></script>
|
||||
<script src="<?cs var:toroot ?>assets/js/android_3p-bundle.js" type="text/javascript"></script><?cs
|
||||
if:page.customHeadTag ?>
|
||||
<?cs var:page.customHeadTag ?><?cs
|
||||
/if ?>
|
||||
|
@ -77,14 +202,7 @@ else
|
|||
var devsite = <?cs if:devsite ?>true<?cs else ?>false<?cs /if ?>;
|
||||
var useUpdatedTemplates = <?cs if:useUpdatedTemplates ?>true<?cs else ?>false<?cs /if ?>;
|
||||
</script>
|
||||
<script src="<?cs var:toroot ?>assets/js/docs.js?v=19" type="text/javascript"></script>
|
||||
|
||||
<?cs if:helpoutsWidget ?>
|
||||
<script type="text/javascript" src="https://helpouts.google.com/ps/res/embed.js" defer async
|
||||
data-helpouts-embed data-helpouts-vertical="programming"
|
||||
data-helpouts-tags="<?cs var:page.tags ?>" data-helpouts-prefix="android"
|
||||
data-helpouts-standalone="true"></script>
|
||||
<?cs /if ?>
|
||||
<script src="<?cs var:toroot ?>assets/js/docs.js?v=17" type="text/javascript"></script>
|
||||
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
|
@ -96,6 +214,6 @@ else
|
|||
ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker);
|
||||
ga('send', 'pageview');
|
||||
ga('universal.send', 'pageview'); // Send page view for new tracker.
|
||||
</script>
|
||||
|
||||
</script><?cs /if ?><?cs
|
||||
# END if/else !devsite ?>
|
||||
</head>
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
<?cs call:custom_masthead() ?>
|
||||
<?cs call:custom_left_nav() ?>
|
||||
<?cs if:!devsite ?><?cs # leave out the global header for devsite; it is in devsite template ?>
|
||||
<?cs call:custom_masthead() ?>
|
||||
|
||||
<?cs if:(fullpage) ?>
|
||||
<?cs call:fullpage() ?>
|
||||
<?cs else ?>
|
||||
<?cs call:body_content_wrap_start() ?>
|
||||
<?cs /if ?>
|
||||
|
||||
<?cs call:search_results() ?>
|
||||
<?cs /if ?><?cs # end if/else !devsite ?>
|
|
@ -1 +1,10 @@
|
|||
window.METADATA = window.METADATA || {};
|
||||
METADATA['<?cs var:metadata.lang ?>'] = {};
|
||||
|
||||
METADATA['<?cs var:metadata.lang ?>'].about = [];
|
||||
METADATA['<?cs var:metadata.lang ?>'].design = [];
|
||||
METADATA['<?cs var:metadata.lang ?>'].develop = [];
|
||||
METADATA['<?cs var:metadata.lang ?>'].distribute = [];
|
||||
METADATA['<?cs var:metadata.lang ?>'].extras = [];
|
||||
|
||||
<?cs var:reference_tree ?>
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
var <?cs
|
||||
if:reference.testSupport ?>SUPPORT_TEST_<?cs
|
||||
elif: reference.wearableSupport ?>SUPPORT_WEARABLE_<?cs
|
||||
/if ?>DATA = [
|
||||
<?cs each:page = docs.pages
|
||||
?> { id:<?cs var: page.id ?>, label:"<?cs var:page.label ?>", link:"<?cs var:page.link ?>", type:"<?cs var:page.type ?>", deprecated:"<?cs var:page.deprecated ?>" }<?cs if:!last(page) ?>,<?cs /if ?>
|
||||
<?cs /each ?>
|
||||
];
|
|
@ -35,10 +35,17 @@
|
|||
</table>
|
||||
<?cs /def ?>
|
||||
|
||||
<?cs def:doc_root_override() ?><?cs
|
||||
if:referenceonly
|
||||
?>https://developer.android.com/<?cs
|
||||
else ?><?cs
|
||||
var:toroot ?><?cs
|
||||
/if ?><?cs
|
||||
<?cs
|
||||
# Prints a comma separated list of parameters with optional line breaks
|
||||
?><?cs
|
||||
def:parameter_list(params, linebreaks) ?><?cs
|
||||
each:param = params ?><?cs
|
||||
call:simple_type_link(param.type)?> <?cs
|
||||
var:param.name ?><?cs
|
||||
if: name(param)!=subcount(params)-1
|
||||
?>, <?cs if:linebreaks
|
||||
?>
|
||||
<?cs /if ?><?cs
|
||||
/if ?><?cs
|
||||
/each ?><?cs
|
||||
/def ?>
|
|
@ -1,50 +1,25 @@
|
|||
<?cs include:"doctype.cs" ?>
|
||||
<?cs # THIS CREATES A PACKAGE SUMMARY PAGE FROM EACH package.html FILES
|
||||
# AND NAMES IT package-summary.html ?>
|
||||
<?cs include:"macros.cs" ?>
|
||||
<?cs include:"macros_override.cs" ?>
|
||||
<?cs include:"doctype.cs" ?>
|
||||
<html<?cs if:devsite ?> devsite<?cs /if ?>>
|
||||
<?cs include:"head_tag.cs" ?>
|
||||
|
||||
<body class="gc-documentation <?cs if:(reference.gms || reference.gcm) ?>google<?cs /if ?>
|
||||
<?cs if:(guide||develop||training||reference||tools||sdk) ?>develop<?cs
|
||||
if:reference ?> reference<?cs
|
||||
/if ?><?cs
|
||||
elif:design ?>design<?cs
|
||||
elif:distribute ?>distribute<?cs
|
||||
/if ?>">
|
||||
<div id="doc-api-level" class="<?cs var:package.since ?>" style="display:none"></div>
|
||||
<a name="top"></a>
|
||||
<?cs include:"body_tag.cs" ?>
|
||||
<?cs include:"header.cs" ?>
|
||||
<?cs include:"page_info.cs" ?>
|
||||
<div class="api apilevel-<?cs var:package.since ?>" id="jd-content">
|
||||
|
||||
<div class="col-12" id="doc-col">
|
||||
|
||||
<div id="api-info-block">
|
||||
<div class="api-level">
|
||||
<?cs call:since_tags(package) ?>
|
||||
<?cs call:federated_refs(package) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="jd-header">
|
||||
package
|
||||
<h1><?cs var:package.name ?></h1>
|
||||
</div><!-- end header -->
|
||||
|
||||
<div id="naMessage"></div>
|
||||
|
||||
<div id="jd-content" class="api apilevel-<?cs var:package.since ?>">
|
||||
<h1><?cs var:package.name ?></h1>
|
||||
|
||||
<?cs if:subcount(package.descr) ?>
|
||||
<div class="jd-descr">
|
||||
<?cs call:tag_list(package.descr) ?>
|
||||
</div>
|
||||
<?cs call:tag_list(package.descr) ?>
|
||||
<?cs /if ?>
|
||||
|
||||
<?cs def:class_table(label, classes) ?>
|
||||
<?cs if:subcount(classes) ?>
|
||||
<h2><?cs var:label ?></h2>
|
||||
<div class="jd-sumtable">
|
||||
<?cs call:class_link_table(classes) ?>
|
||||
</div>
|
||||
<?cs /if ?>
|
||||
<?cs /def ?>
|
||||
|
||||
|
@ -55,12 +30,35 @@
|
|||
<?cs call:class_table("Exceptions", package.exceptions) ?>
|
||||
<?cs call:class_table("Errors", package.errors) ?>
|
||||
|
||||
</div><!-- end jd-content -->
|
||||
</div><!-- end apilevel -->
|
||||
|
||||
<?cs if:devsite ?>
|
||||
<div class="data-reference-resources-wrapper">
|
||||
<?cs if:subcount(class.package) ?>
|
||||
<ul data-reference-resources>
|
||||
<?cs call:list("Annotations", class.package.annotations) ?>
|
||||
<?cs call:list("Interfaces", class.package.interfaces) ?>
|
||||
<?cs call:list("Classes", class.package.classes) ?>
|
||||
<?cs call:list("Enums", class.package.enums) ?>
|
||||
<?cs call:list("Exceptions", class.package.exceptions) ?>
|
||||
<?cs call:list("Errors", class.package.errors) ?>
|
||||
</ul>
|
||||
<?cs elif:subcount(package) ?>
|
||||
<ul data-reference-resources>
|
||||
<?cs call:class_link_list("Annotations", package.annotations) ?>
|
||||
<?cs call:class_link_list("Interfaces", package.interfaces) ?>
|
||||
<?cs call:class_link_list("Classes", package.classes) ?>
|
||||
<?cs call:class_link_list("Enums", package.enums) ?>
|
||||
<?cs call:class_link_list("Exceptions", package.exceptions) ?>
|
||||
<?cs call:class_link_list("Errors", package.errors) ?>
|
||||
</ul>
|
||||
<?cs /if ?>
|
||||
</div>
|
||||
<?cs /if ?>
|
||||
|
||||
<?cs if:!devsite ?>
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div><!-- doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
<?cs /if ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,33 +1,19 @@
|
|||
<?cs include:"doctype.cs" ?>
|
||||
<?cs # THIS CREATES A LIST OF ALL PACKAGES AND NAMES IT packages.html ?>
|
||||
<?cs include:"macros.cs" ?>
|
||||
<?cs include:"doctype.cs" ?>
|
||||
<html<?cs if:devsite ?> devsite<?cs /if ?>>
|
||||
<?cs include:"head_tag.cs" ?>
|
||||
<body class="gc-documentation <?cs if:(reference.gms || reference.gcm) ?>google<?cs /if ?>
|
||||
<?cs if:(guide||develop||training||reference||tools||sdk) ?>develop<?cs
|
||||
if:reference ?> reference<?cs
|
||||
/if ?><?cs
|
||||
elif:design ?>design<?cs
|
||||
elif:distribute ?>distribute<?cs
|
||||
/if ?>">
|
||||
<a name="top"></a>
|
||||
<?cs include:"body_tag.cs" ?>
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
<div class="col-12" id="doc-col">
|
||||
|
||||
<div id="jd-header">
|
||||
<h1><?cs var:page.title ?></h1>
|
||||
</div>
|
||||
|
||||
<div id="jd-content">
|
||||
|
||||
<div class="jd-descr">
|
||||
<p><?cs call:tag_list(root.descr) ?></p>
|
||||
</div>
|
||||
<p>These are the API packages.
|
||||
See all <a href="classes.html">API classes</a>.</p>
|
||||
|
||||
<?cs set:count = #1 ?>
|
||||
<table class="jd-sumtable">
|
||||
<table>
|
||||
<?cs each:pkg = docs.packages ?>
|
||||
<tr class="<?cs if:count % #2 ?>alt-color<?cs /if ?> api apilevel-<?cs var:pkg.since ?>" >
|
||||
<tr class="api apilevel-<?cs var:pkg.since ?>" >
|
||||
<td class="jd-linkcol"><?cs call:package_link(pkg) ?></td>
|
||||
<td class="jd-descrcol" width="100%"><?cs call:tag_list(pkg.shortDescr) ?></td>
|
||||
</tr>
|
||||
|
@ -35,12 +21,33 @@
|
|||
<?cs /each ?>
|
||||
</table>
|
||||
|
||||
</div><!-- end jd-content -->
|
||||
<?cs if:devsite ?>
|
||||
<div class="data-reference-resources-wrapper">
|
||||
<?cs if:subcount(class.package) ?>
|
||||
<ul data-reference-resources>
|
||||
<?cs call:list("Annotations", class.package.annotations) ?>
|
||||
<?cs call:list("Interfaces", class.package.interfaces) ?>
|
||||
<?cs call:list("Classes", class.package.classes) ?>
|
||||
<?cs call:list("Enums", class.package.enums) ?>
|
||||
<?cs call:list("Exceptions", class.package.exceptions) ?>
|
||||
<?cs call:list("Errors", class.package.errors) ?>
|
||||
</ul>
|
||||
<?cs elif:subcount(package) ?>
|
||||
<ul data-reference-resources>
|
||||
<?cs call:class_link_list("Annotations", package.annotations) ?>
|
||||
<?cs call:class_link_list("Interfaces", package.interfaces) ?>
|
||||
<?cs call:class_link_list("Classes", package.classes) ?>
|
||||
<?cs call:class_link_list("Enums", package.enums) ?>
|
||||
<?cs call:class_link_list("Exceptions", package.exceptions) ?>
|
||||
<?cs call:class_link_list("Errors", package.errors) ?>
|
||||
</ul>
|
||||
<?cs /if ?>
|
||||
</div>
|
||||
<?cs /if ?>
|
||||
|
||||
<?cs if:!devsite ?>
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div> <!-- end doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
<?cs /if ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -0,0 +1,109 @@
|
|||
<?cs # optional, more info about the page, such as API level and links ?>
|
||||
<?cs
|
||||
# A modal dialog when API level is set too low for this page
|
||||
?><div id="naMessage"></div>
|
||||
<?cs
|
||||
#
|
||||
# If this is a package summary page...
|
||||
#
|
||||
?><?cs
|
||||
if:subcount(package)
|
||||
?>
|
||||
<div id="api-info-block">
|
||||
<div class="api-level">
|
||||
<?cs call:since_tags(package) ?>
|
||||
<?cs call:federated_refs(package) ?>
|
||||
</div>
|
||||
</div><?cs
|
||||
#
|
||||
# Or if this is a class page...
|
||||
#
|
||||
?><?cs
|
||||
elif:subcount(class)
|
||||
?>
|
||||
<div id="api-info-block">
|
||||
<div class="api-level">
|
||||
<?cs call:since_tags(class) ?><?cs
|
||||
if:class.deprecatedsince
|
||||
?><br>Deprecated since <a href="<?cs var:toroot ?>guide/topics/manifest/uses-sdk-element.html#ApiLevels"
|
||||
>API level <?cs var:class.deprecatedsince ?></a><?cs
|
||||
/if ?>
|
||||
<?cs call:federated_refs(class) ?>
|
||||
</div>
|
||||
|
||||
<?cs # Set variables about whether there are inherited members; no output ?>
|
||||
<?cs each:cl=class.inherited ?>
|
||||
<?cs if:subcount(cl.methods) ?>
|
||||
<?cs set:inhmethods = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(cl.constants) ?>
|
||||
<?cs set:inhconstants = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(cl.fields) ?>
|
||||
<?cs set:inhfields = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(cl.attrs) ?>
|
||||
<?cs set:inhattrs = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs /each ?>
|
||||
|
||||
<div class="sum-details-links">
|
||||
<?cs if:inhattrs || inhconstants || inhfields || inhmethods || (!class.subclasses.hidden &&
|
||||
(subcount(class.subclasses.direct) || subcount(class.subclasses.indirect))) ?>
|
||||
Summary:
|
||||
<?cs if:subcount(class.inners) ?>
|
||||
<a href="#nestedclasses">Nested Classes</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(class.attrs) ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#lattrs">XML Attrs</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:inhattrs ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#inhattrs">Inherited XML Attrs</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(class.enumConstants) ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#enumconstants">Enums</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(class.constants) ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#constants">Constants</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:inhconstants ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#inhconstants">Inherited Constants</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(class.fields) ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#lfields">Fields</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:inhfields ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#inhfields">Inherited Fields</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(class.ctors.public) ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#pubctors">Ctors</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(class.ctors.protected) ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#proctors">Protected Ctors</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(class.methods.public) ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#pubmethods">Methods</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:subcount(class.methods.protected) ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#promethods">Protected Methods</a>
|
||||
<?cs set:linkcount = #1 ?>
|
||||
<?cs /if ?>
|
||||
<?cs if:inhmethods ?>
|
||||
<?cs if:linkcount ?>| <?cs /if ?><a href="#inhmethods">Inherited Methods</a>
|
||||
<?cs /if ?>
|
||||
| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
|
||||
<?cs /if ?>
|
||||
</div><!-- end sum-details-links -->
|
||||
</div><!-- end api-info-block --><?cs
|
||||
/if ?><?cs # end of if package or class ?>
|
|
@ -5,11 +5,6 @@
|
|||
<body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article">
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
<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 ?> >
|
||||
|
||||
<!-- start breadcrumb block -->
|
||||
<div id="api-info-block">
|
||||
<div class="sum-details-links">
|
||||
|
@ -30,7 +25,7 @@
|
|||
<div id="pathCrumb">
|
||||
<?cs each:item = parentdirs ?>
|
||||
<?cs if:LinkifyPathCrumb
|
||||
?><a href="<?cs var:toroot ?><?cs var:item.Link ?>"><?cs var:item.Name ?></a> /
|
||||
?><a href="<?cs var:toroot ?><?cs var:item.Link ?>"><?cs var:item.Name ?></a> /
|
||||
<?cs else
|
||||
?><?cs var:item.Name ?> / <?cs /if ?>
|
||||
<?cs /each ?>
|
||||
|
@ -135,17 +130,10 @@
|
|||
|
||||
</div> <!-- end jd-content -->
|
||||
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div><!-- end doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
<?cs if:!devsite ?>
|
||||
<?cs include:"footer.cs" ?>
|
||||
<?cs include:"trailer.cs" ?>
|
||||
<?cs /if ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -5,11 +5,6 @@
|
|||
<body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article">
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
<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 ?> >
|
||||
|
||||
<!-- start breadcrumb block -->
|
||||
<div id="api-info-block">
|
||||
<div class="sum-details-links">
|
||||
|
@ -126,7 +121,6 @@
|
|||
</div> <!-- end jd-content -->
|
||||
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div><!-- end doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
var SAMPLES_NAVTREE_DATA =
|
||||
<?cs var:reference_tree ?>
|
||||
;
|
||||
toc:
|
||||
- title: About the Samples
|
||||
path: /samples/index.html
|
||||
|
||||
- title: What's New
|
||||
path: /samples/new/index.html
|
||||
|
||||
<?cs var:samples_toc_tree ?>
|
|
@ -1,443 +0,0 @@
|
|||
<?cs include:"doctype.cs" ?>
|
||||
<?cs include:"macros.cs" ?>
|
||||
<?cs include:"../../../../frameworks/base/docs/html/sdk/sdk_vars.cs" ?>
|
||||
<html<?cs if:devsite ?> devsite<?cs /if ?>>
|
||||
<?cs if:sdk.redirect ?>
|
||||
<head>
|
||||
<title>Redirecting...</title>
|
||||
<meta http-equiv="refresh" content="0;url=<?cs var:toroot ?>sdk/<?cs
|
||||
if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
|
||||
else ?>index.html<?cs /if ?>">
|
||||
</head>
|
||||
<?cs else ?>
|
||||
<?cs include:"head_tag.cs" ?>
|
||||
<?cs /if ?>
|
||||
<body class="gc-documentation
|
||||
<?cs if:(guide||develop||training||reference||tools||sdk) ?>develop<?cs
|
||||
elif:design ?>design<?cs
|
||||
elif:distribute ?>distribute<?cs
|
||||
/if ?>" itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<a name="top"></a>
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
|
||||
<div <?cs if:fullpage
|
||||
?><?cs else
|
||||
?>class="col-13" id="doc-col"<?cs /if ?> >
|
||||
|
||||
<?cs if:sdk.redirect ?>
|
||||
|
||||
<div class="g-unit">
|
||||
<div id="jd-content">
|
||||
<p>Redirecting to
|
||||
<a href="<?cs var:toroot ?>sdk/<?cs
|
||||
if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
|
||||
else ?>index.html<?cs /if ?>"><?cs
|
||||
if:sdk.redirect.path ?><?cs var:sdk.redirect.path ?><?cs
|
||||
else ?>Download the SDK<?cs /if ?>
|
||||
</a> ...</p>
|
||||
|
||||
<?cs else ?>
|
||||
<?cs # else, if NOT redirect ...
|
||||
#
|
||||
#
|
||||
# The following is for SDK/NDK pages
|
||||
#
|
||||
#
|
||||
?>
|
||||
|
||||
<?cs if:header.hide ?><?cs else ?>
|
||||
<h1 itemprop="name"><?cs var:page.title ?></h1>
|
||||
<?cs /if ?>
|
||||
<div id="jd-content" itemprop="description">
|
||||
|
||||
<?cs if:sdk.not_latest_version ?>
|
||||
<div class="special">
|
||||
<p><strong>This is NOT the current Android SDK release.</strong></p>
|
||||
<p><a href="/sdk/index.html">Download the current Android SDK</a></p>
|
||||
</div>
|
||||
<?cs /if ?>
|
||||
|
||||
|
||||
<?cs if:ndk ?>
|
||||
<?cs #
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
# the following is for the NDK
|
||||
#
|
||||
# (nested in if/else redirect)
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
?>
|
||||
|
||||
<table class="download" id="download-table">
|
||||
<tr>
|
||||
<th>Platform</th>
|
||||
<th>Package</th>
|
||||
<th style="white-space:nowrap">Size (Bytes)</th>
|
||||
<th>SHA1 Checksum</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Windows 32-bit</td>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.win32_download ?>"><?cs var:ndk.win32_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.win32_bytes ?></td>
|
||||
<td><?cs var:ndk.win32_checksum ?></td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/ndk/<?cs var:ndk.win32.legacy_download ?>"><?cs var:ndk.win32.legacy_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.win32.legacy_bytes ?></td>
|
||||
<td><?cs var:ndk.win32.legacy_checksum ?></td>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<td>Windows 64-bit</td>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.win64_download ?>"><?cs var:ndk.win64_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.win64_bytes ?></td>
|
||||
<td><?cs var:ndk.win64_checksum ?></td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.win64.legacy_download ?>"><?cs var:ndk.win64.legacy_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.win64.legacy_bytes ?></td>
|
||||
<td><?cs var:ndk.win64.legacy_checksum ?></td>
|
||||
</tr> -->
|
||||
<!-- (this item is deprecated)
|
||||
<tr>
|
||||
<td>Mac OS X 32-bit</td>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.mac32_download ?>"><?cs var:ndk.mac32_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.mac32_bytes ?></td>
|
||||
<td><?cs var:ndk.mac32_checksum ?></td>
|
||||
</tr> -->
|
||||
<!-- (this item is deprecated)
|
||||
<tr>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.mac32.legacy_download ?>"><?cs var:ndk.mac32.legacy_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.mac32.legacy_bytes ?></td>
|
||||
<td><?cs var:ndk.mac32.legacy_checksum ?></td>
|
||||
</tr> -->
|
||||
<td>Mac OS X 64-bit</td>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.mac64_download ?>"><?cs var:ndk.mac64_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.mac64_bytes ?></td>
|
||||
<td><?cs var:ndk.mac64_checksum ?></td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.mac64.legacy_download ?>"><?cs var:ndk.mac64.legacy_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.mac64.legacy_bytes ?></td>
|
||||
<td><?cs var:ndk.mac64.legacy_checksum ?></td>
|
||||
</tr> -->
|
||||
<!-- <tr>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.linux32.legacy_download ?>"><?cs var:ndk.linux32.legacy_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.linux32.legacy_bytes ?></td>
|
||||
<td><?cs var:ndk.linux32.legacy_checksum ?></td>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<td>Linux 64-bit (x86)</td>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.linux64_download ?>"><?cs var:ndk.linux64_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.linux64_bytes ?></td>
|
||||
<td><?cs var:ndk.linux64_checksum ?></td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td>
|
||||
<a onClick="return onDownload(this)" data-modal-toggle="ndk_tos"
|
||||
href="//dl.google.com/android/repository/<?cs var:ndk.linux64.legacy_download ?>"><?cs var:ndk.linux64.legacy_download ?></a>
|
||||
</td>
|
||||
<td><?cs var:ndk.linux64.legacy_bytes ?></td>
|
||||
<td><?cs var:ndk.linux64.legacy_checksum ?></td>
|
||||
</tr> -->
|
||||
|
||||
</table>
|
||||
|
||||
<?cs ######## HERE IS THE JD DOC CONTENT ######### ?>
|
||||
<?cs call:tag_list(root.descr) ?>
|
||||
|
||||
|
||||
<?cs ######## The NDK version of the download script ######### ?>
|
||||
<script>
|
||||
function onDownload(link) {
|
||||
|
||||
$("#downloadForRealz").html("Download " + $(link).text());
|
||||
$("#downloadForRealz").attr('href',$(link).attr('href'));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function onAgreeChecked() {
|
||||
if ($("input#agree").is(":checked")) {
|
||||
$("a#downloadForRealz").removeClass('disabled');
|
||||
} else {
|
||||
$("a#downloadForRealz").addClass('disabled');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function onDownloadForRealz(link) {
|
||||
if ($("input#agree").is(':checked')) {
|
||||
$("div.sdk-terms").slideUp();
|
||||
$("h2#tos-header").text('Now downloading...');
|
||||
$(".sdk-terms-intro").text('Your download is in progress.');
|
||||
$("#sdk-terms-form").fadeOut('slow', function() {
|
||||
setTimeout(function() {
|
||||
// close the dialog
|
||||
$('#ndk_tos').trigger('modal-close');
|
||||
// reload to refresh the tos or optionally forward the user
|
||||
location.reload();
|
||||
}, 3000);
|
||||
});
|
||||
ga('send', 'event', 'SDK', 'NDK tools', $("#downloadForRealz").html());
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$(window).hashchange( function(){
|
||||
if (location.hash == "") {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<?cs else ?>
|
||||
<?cs # end if NDK ...
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
# the following is for the SDK
|
||||
#
|
||||
# (nested in if/else redirect and if/else NDK)
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
?>
|
||||
<?cs if:android.whichdoc == "online" ?>
|
||||
|
||||
|
||||
<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
|
||||
<?cs call:tag_list(root.descr) ?>
|
||||
|
||||
|
||||
<?cs ####### TODO: Remove this whole file from processing. ######## ?>
|
||||
|
||||
|
||||
<?cs ######## The Android Studio version of the download script ######### ?>
|
||||
<script>
|
||||
var os;
|
||||
var bundlename;
|
||||
var $toolslink;
|
||||
|
||||
if (navigator.appVersion.indexOf("Mobile")!=-1) {
|
||||
// Do nothing for any "mobile" user agent
|
||||
} else if (navigator.appVersion.indexOf("Win")!=-1) {
|
||||
os = "Windows";
|
||||
bundlename = '#win-bundle';
|
||||
$toolslink = $('#win-tools');
|
||||
} else if (navigator.appVersion.indexOf("Mac")!=-1) {
|
||||
os = "Mac";
|
||||
bundlename = '#mac-bundle';
|
||||
$toolslink = $('#mac-tools');
|
||||
} else if (navigator.appVersion.indexOf("Linux")!=-1 && navigator.appVersion.indexOf("Android")==-1) {
|
||||
os = "Linux";
|
||||
bundlename = '#linux-bundle';
|
||||
$toolslink = $('#linux-tools');
|
||||
}
|
||||
|
||||
if (os != undefined) {
|
||||
$('#not-supported').hide();
|
||||
|
||||
/* set up primary Android Studio download button */
|
||||
idname = bundlename + "-size";
|
||||
sizeMB = $(idname).text().split(' MB')[0];
|
||||
$('.download-bundle-button > .small').html(" for " + os + " <em>(" + sizeMB + " MB)</em>");
|
||||
$('.download-bundle-button').click(function() {return onDownload(this,true,true);}).attr('href', bundlename);
|
||||
}
|
||||
|
||||
|
||||
function onDownload(link, button, bundle) {
|
||||
|
||||
/* set text for download button */
|
||||
if (button) {
|
||||
$("#downloadForRealz").html($(link).text());
|
||||
} else {
|
||||
$("#downloadForRealz").html("Download " + $(link).text());
|
||||
}
|
||||
|
||||
$("#downloadForRealz").attr('bundle', bundle);
|
||||
if (bundle && !button) {
|
||||
$("a#downloadForRealz").attr("name", "#" + $(link).attr('id'));
|
||||
} else {
|
||||
$("h2#tos-header").text('Download the Android SDK Tools');
|
||||
$("a#downloadForRealz").attr("name", $(link).attr('href'));
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function onAgreeChecked() {
|
||||
/* verify that the TOS is agreed */
|
||||
if ($("input#agree").is(":checked")) {
|
||||
|
||||
/* if downloading the bundle */
|
||||
if ($("#downloadForRealz").attr('bundle')) {
|
||||
/* construct the name of the link we want */
|
||||
linkId = $("a#downloadForRealz").attr("name");
|
||||
/* set the real url for download */
|
||||
$("a#downloadForRealz").attr("href", $(linkId).attr("href"));
|
||||
} else {
|
||||
$("a#downloadForRealz").attr("href", $("a#downloadForRealz").attr("name"));
|
||||
}
|
||||
|
||||
/* reveal the download button */
|
||||
$("a#downloadForRealz").removeClass('disabled');
|
||||
} else {
|
||||
$("a#downloadForRealz").addClass('disabled');
|
||||
}
|
||||
}
|
||||
|
||||
function onDownloadForRealz(link) {
|
||||
if ($("input#agree").is(':checked')) {
|
||||
$("div.sdk-terms").slideUp();
|
||||
if ($("#downloadForRealz").attr('bundle') == 'true') {
|
||||
$("h2#tos-header").text('Now downloading Android Studio!');
|
||||
$(".sdk-terms-intro").text('Redirecting to the install instructions...');
|
||||
$("#sdk-terms-form").slideUp(function() {
|
||||
setTimeout(function() {
|
||||
window.location = "/sdk/installing/index.html";
|
||||
}, 2000);
|
||||
});
|
||||
} else {
|
||||
$("h2#tos-header").text('Now downloading the Android SDK Tools!');
|
||||
$(".sdk-terms-intro").html("<p>Because you've chosen to download " +
|
||||
"only the Android SDK tools (and not Android Studio), there are no " +
|
||||
"setup procedures to follow.</p><p>For information about how to " +
|
||||
"keep your SDK tools up to date, refer to the " +
|
||||
"<a href='/tools/help/sdk-manager.html'>SDK Manager</a> guide.</p>");
|
||||
$("#sdk-terms-form").slideUp();
|
||||
}
|
||||
ga('send', 'event', 'SDK', 'IDE and Tools', $("#downloadForRealz").html());
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$(window).hashchange( function(){
|
||||
if (location.hash == "") {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
<?cs # THIS DIV WAS OPENED IN INDEX.JD ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?cs else ?> <?cs # end if online ?>
|
||||
|
||||
<?cs if:sdk.preview ?><?cs # it's preview offline docs ?>
|
||||
<p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming
|
||||
Android 3.0 release, to give you a head-start on developing applications for it.
|
||||
</p>
|
||||
|
||||
<p>See the <a
|
||||
href="<?cs var:toroot ?>sdk/preview/start.html">Getting Started</a> document for more information
|
||||
about how to set up the preview SDK and get started.</p>
|
||||
<style type="text/css">
|
||||
.non-preview { display:none; }
|
||||
</style>
|
||||
|
||||
<?cs else ?><?cs # it's normal offline docs ?>
|
||||
|
||||
<?cs ######## HERE IS THE JD DOC CONTENT FOR OFFLINE ######### ?>
|
||||
<?cs call:tag_list(root.descr) ?>
|
||||
<style type="text/css">
|
||||
body .offline { display:block; }
|
||||
body .online { display:none; }
|
||||
</style>
|
||||
<script>
|
||||
$('.reqs').show();
|
||||
</script>
|
||||
<?cs /if ?>
|
||||
|
||||
<?cs /if ?> <?cs # end if/else online ?>
|
||||
|
||||
<?cs /if ?> <?cs # end if/else NDK ?>
|
||||
|
||||
<?cs /if ?> <?cs # end if/else redirect ?>
|
||||
|
||||
|
||||
</div><!-- end jd-content -->
|
||||
|
||||
<?cs if:!sdk.redirect ?>
|
||||
<?cs include:"footer.cs" ?>
|
||||
<?cs /if ?>
|
||||
|
||||
</div><!-- end g-unit -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
<script src="https://developer.android.com/ytblogger_lists_unified.js?v=17" type="text/javascript"></script>
|
||||
<script src="/jd_lists_unified.js?v=17" type="text/javascript"></script>
|
||||
<script src="/jd_extras.js?v=17" type="text/javascript"></script>
|
||||
<script src="/jd_collections.js?v=17" type="text/javascript"></script>
|
||||
<script src="/jd_tag_helpers.js?v=17" type="text/javascript"></script>
|
||||
|
||||
<!-- Start of Tag -->
|
||||
<script type="text/javascript">
|
||||
var axel = Math.random() + "";
|
||||
var a = axel * 10000000000000;
|
||||
document.write('<iframe src="https://2507573.fls.doubleclick.net/activityi;src=2507573;type=other026;cat=googl348;ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
|
||||
</script>
|
||||
<noscript>
|
||||
<iframe src="https://2507573.fls.doubleclick.net/activityi;src=2507573;type=other026;cat=googl348;ord=1?" width="1" height="1" frameborder="0" style="display:none"></iframe>
|
||||
</noscript>
|
||||
<!-- End of Tag -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
</div> <!-- end .cols --> <?cs # normally opened by header.cs ?>
|
||||
<?cs
|
||||
# Other, non-visible things needed at the end of the page,
|
||||
# because not every page needs footer content, but does need other stuff
|
||||
?>
|
||||
</div> <!-- end body-content --> <?cs # normally opened by header.cs ?>
|
||||
|
||||
<?cs if:carousel ?>
|
||||
|
@ -19,3 +22,17 @@ $(".feed").dacTabbedList({
|
|||
</script>
|
||||
<?cs /if ?>
|
||||
|
||||
<script src="https://developer.android.com/ytblogger_lists_unified.js" defer></script>
|
||||
<script src="/jd_lists_unified_en.js?v=17" defer></script>
|
||||
<script src="/reference/lists.js?v=17" defer></script>
|
||||
<script src="/reference/gcm_lists.js?v=17" defer></script>
|
||||
<script src="/reference/gms_lists.js?v=17" defer></script>
|
||||
<script>
|
||||
// Load localized metadata.
|
||||
(function(lang) {
|
||||
if (lang === 'en') { return; }
|
||||
|
||||
// Write it to the document so it gets evaluated before DOMContentReady.
|
||||
document.write('<script src="/jd_lists_unified_' + lang + '.js?v=14" defer></' + 'script>');
|
||||
})(getLangPref())
|
||||
</script>
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<?cs
|
||||
|
||||
# print out the yaml nav for the reference docs, only printing the title,
|
||||
path, and status_text (API level) for each package.
|
||||
|
||||
?>
|
||||
reference:<?cs
|
||||
each:page = docs.pages?><?cs
|
||||
if:page.type == "package"?>
|
||||
- title: <?cs var:page.label ?>
|
||||
path: /<?cs var:page.link ?>
|
||||
status_text: apilevel-<?cs var:page.apilevel ?><?cs
|
||||
/if?><?cs
|
||||
/each ?>
|