Rebased Updated templates, styles, scripts for dac.
Change-Id: Ida1a7f39cb6df0255f8f9c8e96a2270a0283c59e
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 |
|
@ -2764,3 +2764,9 @@ jQuery.effects||function(a,b){function c(b){var c;return b&&b.constructor==Array
|
|||
* 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);;
|
||||
/*! (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});
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
<a name="top"></a>
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
<div class="col-12" id="doc-col">
|
||||
|
||||
<div id="api-info-block">
|
||||
|
||||
<?cs # are there inherited members ?>
|
||||
|
@ -670,7 +668,6 @@ From <?cs var:cl.kind ?>
|
|||
</div> <!-- jd-content -->
|
||||
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div><!-- end doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
<a name="top"></a>
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
<div class="col-12" id="doc-col">
|
||||
|
||||
<div id="jd-header">
|
||||
<h1><?cs var:page.title ?></h1>
|
||||
</div>
|
||||
|
@ -46,7 +44,6 @@
|
|||
</div><!-- end jd-content -->
|
||||
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div><!-- end doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
|
|
|
@ -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,80 @@
|
|||
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 # ADD SEARCH AND MENU ?>
|
||||
<?cs if:!ndk ?>
|
||||
<?cs call:header_search_widget() ?>
|
||||
<?cs /if ?>
|
||||
<?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
|
||||
?><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 if:ndk ?><a class="dac-header-console-btn" href="http://developer.android.com">
|
||||
<span class="dac-visible-desktop-inline">Back to Android Developers</span>
|
||||
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 ?>
|
||||
|
||||
<?cs # ADD SEARCH AND MENU ?>
|
||||
<?cs if:!ndk ?>
|
||||
<?cs call:header_search_widget() ?>
|
||||
<?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 +103,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,153 +133,159 @@
|
|||
<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 ?>
|
||||
<!-- 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>
|
||||
<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>
|
||||
<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 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/marshmallow/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>
|
||||
</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 ?>
|
||||
</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>
|
||||
</ul>
|
||||
</div>
|
||||
</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() ?>
|
||||
|
||||
|
||||
<?cs # (UN)COMMENT THE INSIDE OF THIS METHOD TO TOGGLE VISIBILITY ?>
|
||||
<?cs def:butter_bar() ?>
|
||||
<?cs def:toast() ?>
|
||||
|
||||
<?cs # HIDE THE BUTTER BAR
|
||||
<?cs # (UN)COMMENT TO TOGGLE VISIBILITY
|
||||
|
||||
<div style="height:20px"><!-- spacer to bump header down --></div>
|
||||
<div id="butterbar-wrapper">
|
||||
<div id="butterbar">
|
||||
<a href="http://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>
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -1,345 +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 ?><?cs
|
||||
<?cs def:body_content_wrap_start() ?>
|
||||
<div class="wrap clearfix" id="body-content">
|
||||
<?cs /def ?>
|
||||
|
||||
def:fullpage() ?>
|
||||
<?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
|
||||
<?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: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() -->
|
||||
|
@ -347,96 +35,45 @@ 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
|
||||
def:ndk_nav() ?>
|
||||
|
@ -454,148 +91,167 @@ 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: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 -->
|
||||
<?cs def:header_search_widget() ?>
|
||||
<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-2of6 col-tablet-1of2 col-mobile-1of1">
|
||||
<div class="suggest-card reference no-display">
|
||||
<ul class="dac-search-results-reference">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="search-resources"
|
||||
class="dac-search-results-resources resource-flow-layout"
|
||||
data-maxresults="10"
|
||||
data-cardsizes="6x2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="dac-custom-search" class="dac-custom-search">
|
||||
<div class="wrap dac-offset-parent">
|
||||
<a class="dac-fab dac-scroll-button" data-scroll-button="" data-scroll-container="#search-results" href="#dac-custom-search">
|
||||
<i class="dac-sprite dac-arrow-down-gray"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="wrap">
|
||||
<h2 class="dac-custom-search-section-title">More results</h2>
|
||||
<div id="dac-custom-search-results"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?cs /def ?>
|
||||
|
||||
<?cs def:custom_left_nav() ?>
|
||||
<?cs if:(!fullpage && !nonavpage) || forcelocalnav ?>
|
||||
<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>
|
||||
<div class="dac-nav-sub dac-swap-section dac-right dac-active" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?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: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
|
||||
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: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
|
||||
def:custom_cc_copyright() ?>
|
||||
<?cs # appears at the bottom of every page ?>
|
||||
<?cs def:custom_cc_copyright() ?>
|
||||
Except as noted, this content is
|
||||
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
|
||||
def:custom_copyright() ?>
|
||||
<?cs def:custom_copyright() ?>
|
||||
Except as noted, this content is licensed under <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
|
||||
def:custom_footerlinks() ?>
|
||||
<a href="<?cs var:toroot ?>about/index.html">About Android</a>
|
||||
<?cs def:custom_footerlinks() ?>
|
||||
<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 # 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 ?>
|
||||
|
|
|
@ -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 ?>
|
||||
|
||||
|
|
|
@ -25,27 +25,38 @@
|
|||
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
|
||||
/if ?><?cs
|
||||
if:page.trainingcourse ?> trainingcourse<?cs /if ?><?cs
|
||||
/if ?>" itemscope itemtype="http://schema.org/Article"><?cs
|
||||
include:"header.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 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 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">
|
||||
|
@ -75,7 +86,7 @@ include:"header.cs" ?>
|
|||
>Get started</a>
|
||||
</div>
|
||||
<?cs elif:!page.trainingcourse ?>
|
||||
<div class="paging-links" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<?cs # <div class="paging-linkss" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
||||
<a href="#" class="prev-page-link hide"
|
||||
zh-tw-lang="上一堂課"
|
||||
zh-cn-lang="上一课"
|
||||
|
@ -92,7 +103,7 @@ include:"header.cs" ?>
|
|||
ja-lang="次へ"
|
||||
es-lang="Siguiente"
|
||||
>Next</a>
|
||||
</div>
|
||||
</div> ?>
|
||||
<?cs /if ?><?cs # end if training ?>
|
||||
</div>
|
||||
<?cs /if ?><?cs # end if header.hide ?>
|
||||
|
@ -117,7 +128,7 @@ include:"header.cs" ?>
|
|||
</style>
|
||||
<?cs /if ?>
|
||||
|
||||
<?cs if:(!fullpage && !header.hide) ?>
|
||||
<?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 ?>
|
||||
|
@ -138,6 +149,13 @@ include:"header.cs" ?>
|
|||
</div>
|
||||
<?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>
|
||||
|
@ -154,17 +172,47 @@ include:"header.cs" ?>
|
|||
|
||||
<?cs # THIS IS THE MAIN DOC CONTENT ?>
|
||||
<div id="jd-content">
|
||||
|
||||
|
||||
<div class="jd-descr" itemprop="articleBody">
|
||||
<?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 ?>
|
||||
|
||||
<?cs call:tag_list(root.descr) ?>
|
||||
</div>
|
||||
|
||||
<?cs if:!fullscreen && (design||training||walkthru) && !page.landing && !page.trainingcourse && !footer.hide ?>
|
||||
<?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="下一课"
|
||||
|
@ -172,7 +220,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="开始"
|
||||
|
@ -181,22 +230,18 @@ 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 -->
|
||||
|
||||
<?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=17" type="text/javascript"></script>
|
||||
<script src="<?cs var:toroot ?>jd_lists_unified.js?v=17" type="text/javascript"></script>
|
||||
<script src="<?cs var:toroot ?>jd_extras.js?v=17" type="text/javascript"></script>
|
||||
<script src="<?cs var:toroot ?>jd_collections.js?v=17" type="text/javascript"></script>
|
||||
<script src="<?cs var:toroot ?>jd_tag_helpers.js?v=17" type="text/javascript"></script>
|
||||
|
||||
<?cs /if ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<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">
|
||||
|
@ -11,9 +11,9 @@
|
|||
<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 +34,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 +56,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 +113,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 +139,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 +150,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 +169,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,92 @@
|
|||
<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 ?>
|
||||
if:devsite ?>
|
||||
<meta name="top_category" value="<?cs
|
||||
if:ndk ?>ndk<?cs
|
||||
elif:(google || referensce.gms || reference.gcm) ?>google<?cs
|
||||
elif:(guide||develop||training||reference||tools||sdk||google||samples) ?>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
|
||||
else ?>none<?cs
|
||||
/if ?>" />
|
||||
<meta name="subcategory" value="<?cs
|
||||
if:ndk ?><?cs
|
||||
if:guide ?>guide<?cs
|
||||
elif:samples ?>samples<?cs
|
||||
elif:reference ?>reference<?cs
|
||||
elif:downloads ?>downloads<?cs
|
||||
else ?>none<?cs /if ?><?cs
|
||||
else ?><?cs
|
||||
if:(guide||develop||training||reference||tools||sdk||google||samples) ?><?cs
|
||||
if:guide ?>guide<?cs
|
||||
elif:training ?><?cs
|
||||
if:page.trainingcourse ?>trainingcourse<?cs
|
||||
else ?>training<?cs /if ?><?cs
|
||||
elif:reference ?>reference<?cs
|
||||
elif:tools ?>tools<?cs
|
||||
elif:sdk ?>sdk<?cs
|
||||
elif:samples ?>samples<?cs
|
||||
else ?>none<?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 /if ?><?cs
|
||||
elif:(about||versions||wear||tv||auto) ?><?cs
|
||||
if:versions ?>about<?cs
|
||||
elif:wear ?>wear<?cs
|
||||
elif:tv ?>tv<?cs
|
||||
elif:auto ?>auto<?cs
|
||||
else ?>none<?cs /if ?><?cs
|
||||
elif:design ?><?cs
|
||||
if:vision ?>vision<?cs
|
||||
elif:material ?>material<?cs
|
||||
elif:patterns ?>patterns<?cs
|
||||
elif:devices ?>devices<?cs
|
||||
elif:designdownloads ?>designdownloads<?cs
|
||||
else ?>none<?cs /if ?><?cs
|
||||
elif:training ?><?cs
|
||||
if:page.trainingcourse ?>trainingcourse<?cs
|
||||
else ?>training<?cs /if ?><?cs
|
||||
elif:walkthru ?>walkthru<?cs
|
||||
else ?>none<?cs /if ?><?cs
|
||||
/if ?>" />
|
||||
|
||||
<?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 ?><?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,12 +98,27 @@
|
|||
<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 ?>
|
||||
|
||||
<title><?cs
|
||||
if:devsite ?><?cs
|
||||
if:page.title ?><?cs
|
||||
var:page.title ?><?cs
|
||||
else ?>Android Developers<?cs
|
||||
/if ?><?cs
|
||||
else ?><?cs
|
||||
if:page.title ?><?cs
|
||||
var:page.title ?> | <?cs
|
||||
/if ?>Android Developers</title>
|
||||
|
||||
/if ?>Android Developers
|
||||
<?cs /if ?><?cs
|
||||
# END if/else devsite ?></title>
|
||||
<?cs
|
||||
if:page.metaDescription ?>
|
||||
<meta name="description" content="<?cs var:page.metaDescription ?>"><?cs
|
||||
/if ?>
|
||||
<?cs
|
||||
if:!devsite ?>
|
||||
<!-- STYLESHEETS -->
|
||||
<link rel="stylesheet"
|
||||
href="<?cs
|
||||
|
@ -52,22 +133,11 @@ if:android.whichdoc != 'online' ?>http:<?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=17" 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' ?>http:<?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 var:toroot ?>assets/js/android_3p-bundle.js" type="text/javascript"></script><?cs
|
||||
if:page.customHeadTag ?>
|
||||
<?cs var:page.customHeadTag ?><?cs
|
||||
/if ?>
|
||||
|
@ -75,16 +145,10 @@ else
|
|||
var toRoot = "<?cs var:toroot ?>";
|
||||
var metaTags = [<?cs var:meta.tags ?>];
|
||||
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=17" 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>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
|
@ -96,5 +160,6 @@ else
|
|||
ga('send', 'pageview');
|
||||
ga('universal.send', 'pageview'); // Send page view for new tracker.
|
||||
</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 ?>
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
<a name="top"></a>
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
<div class="col-12" id="doc-col">
|
||||
|
||||
<div id="api-info-block">
|
||||
<div class="api-level">
|
||||
<?cs call:since_tags(package) ?>
|
||||
|
@ -58,7 +56,6 @@
|
|||
</div><!-- end jd-content -->
|
||||
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div><!-- doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
<a name="top"></a>
|
||||
<?cs include:"header.cs" ?>
|
||||
|
||||
<div class="col-12" id="doc-col">
|
||||
|
||||
<div id="jd-header">
|
||||
<h1><?cs var:page.title ?></h1>
|
||||
</div>
|
||||
|
@ -38,7 +36,6 @@
|
|||
</div><!-- end jd-content -->
|
||||
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div> <!-- end doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
@ -136,7 +131,6 @@
|
|||
</div> <!-- end jd-content -->
|
||||
|
||||
<?cs include:"footer.cs" ?>
|
||||
</div><!-- end doc-content -->
|
||||
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
|
|
|
@ -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" ?>
|
||||
|
||||
|
|
|
@ -11,19 +11,16 @@
|
|||
<?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
|
||||
<body class="gc-documentation <?cs
|
||||
if:(guide||develop||training||reference||tools||sdk) ?> develop<?cs
|
||||
elif:design ?> design<?cs
|
||||
elif:distribute ?> distribute<?cs
|
||||
elif:ndk ?> ndk<?cs
|
||||
if:downloads ?> downloads<?cs /if ?><?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">
|
||||
|
@ -43,7 +40,15 @@
|
|||
# The following is for SDK/NDK pages
|
||||
#
|
||||
#
|
||||
?>
|
||||
?><?cs
|
||||
if:ndk ?>
|
||||
<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><?cs
|
||||
/if ?>
|
||||
|
||||
<?cs if:header.hide ?><?cs else ?>
|
||||
<h1 itemprop="name"><?cs var:page.title ?></h1>
|
||||
|
@ -567,9 +572,9 @@ var:sdk.linux_download
|
|||
<?cs /if ?>
|
||||
|
||||
</div><!-- end g-unit -->
|
||||
|
||||
<?cs if:!devsite ?>
|
||||
<?cs include:"trailer.cs" ?>
|
||||
|
||||
<?cs /if ?>
|
||||
<!-- Start of Tag -->
|
||||
<script type="text/javascript">
|
||||
var axel = Math.random() + "";
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
</div> <!-- end .cols --> <?cs # normally opened by header.cs ?>
|
||||
</div> <!-- end body-content --> <?cs # normally opened by header.cs ?>
|
||||
|
||||
<?cs if:carousel ?>
|
||||
|
@ -19,3 +18,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>
|
||||
|
|
|
@ -6362,9 +6362,13 @@ div.jd-descr > .resource-widget[data-section=distribute\/tools] .section-card-me
|
|||
.dac-button.dac-raised.dac-primary, .landing-secondary, .button {
|
||||
background-color: #039bef; }
|
||||
.dac-button.dac-raised.dac-primary:hover, .landing-secondary:hover, .button:hover {
|
||||
background-color: #0288d1; color:#fff; }
|
||||
background-color: #0288d1;
|
||||
color:#fff; }
|
||||
.dac-button.dac-raised.dac-primary:active, .landing-secondary:active, .button:active {
|
||||
background-color: #0277bd; }
|
||||
background-color: #0277bd;
|
||||
color:#fff; }
|
||||
.dac-button.dac-raised.dac-primary.disabled, .button.disabled {
|
||||
background-color: #bbb; }
|
||||
|
||||
.dac-button.dac-raised.dac-red, .landing-primary {
|
||||
background-color: #bf3722; }
|
||||
|
@ -8801,11 +8805,6 @@ $spritesheet: width height image $spritesheet-sprites;
|
|||
min-height: 550px;
|
||||
padding-top: 88px;
|
||||
}
|
||||
|
||||
.dac-hero.summit {
|
||||
background-image: url(../../images/ads_hero_17@2x.jpg);
|
||||
}
|
||||
|
||||
.dac-hero.dac-darken.mprev::before {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
bottom: 0;
|
||||
|
|
|
@ -983,7 +983,7 @@ function scrollIntoView(nav) {
|
|||
}
|
||||
// get the selected item's offset from its container nav by measuring the item's offset
|
||||
// relative to the document then subtract the container nav's offset relative to the document
|
||||
var selectedOffset = $selected.offset().top - $nav.offset().top;
|
||||
var selectedOffset = $selected.offset().top - $nav.offset().top + 60;
|
||||
if (selectedOffset > $nav.height() * .8) { // multiply nav height by .8 so we move up the item
|
||||
// if it's more than 80% down the nav
|
||||
// scroll the item up by an amount equal to 80% the container nav's height
|
||||
|
|
|
@ -75,6 +75,7 @@ else
|
|||
var toRoot = "<?cs var:toroot ?>";
|
||||
var metaTags = [<?cs var:meta.tags ?>];
|
||||
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=17" type="text/javascript"></script>
|
||||
|
||||
|
|