summaryrefslogtreecommitdiffstats
path: root/docs/html/training
diff options
context:
space:
mode:
authorScott Rowe <scottrowe@google.com>2014-10-29 13:32:30 -0700
committerScott Rowe <scottrowe@google.com>2014-10-31 09:51:27 -0700
commit4c3a07ba052126f71a7a5348170e6382606edcb1 (patch)
treebde30e3a374e269763a9b80bf873abfe3968eabb /docs/html/training
parentdd8accfe0f3d71a4e6402595fea48bf435a09b65 (diff)
downloadframeworks_base-4c3a07ba052126f71a7a5348170e6382606edcb1.zip
frameworks_base-4c3a07ba052126f71a7a5348170e6382606edcb1.tar.gz
frameworks_base-4c3a07ba052126f71a7a5348170e6382606edcb1.tar.bz2
docs: b/18119632 isGame, b/18119595 banner
Change-Id: I171b4aff3359ec96b2ea1003870739ad586971c7
Diffstat (limited to 'docs/html/training')
-rw-r--r--docs/html/training/tv/games/index.jd24
-rw-r--r--docs/html/training/tv/start/start.jd31
2 files changed, 42 insertions, 13 deletions
diff --git a/docs/html/training/tv/games/index.jd b/docs/html/training/tv/games/index.jd
index 2f510a9..8a998e0 100644
--- a/docs/html/training/tv/games/index.jd
+++ b/docs/html/training/tv/games/index.jd
@@ -194,22 +194,22 @@ It includes a white controller on black background and a black controller on whi
<p>There are a some special things games should include in the Android manifest.</p>
-<h3 id="Launcher">Show your game in the launcher</h3>
+<h3 id="Launcher">Show your game on the home screen</h3>
<p>
- The Android TV launcher home screen displays games in a separate row from regular apps.
- To make your game appear in the list of games, add the
- <a href="{@docRoot}guide/topics/manifest/meta-data-element.html"
- ><code>&lt;meta-data></code></a> tag in your app manifest with <code>android:name</code>
- set to <code>"isGame"</code> and <code>android:value</code>
- set to <code>"true"</code>. For example:
+ The Android TV home screen displays games in a separate row from regular apps.
+ To make your game appear in the list of games, set the
+ <a href="{@docRoot}guide/topics/manifest/application-element.html#isGame">
+ {@code android:isGame}</a> attribute to <code>"true"</code> in your app manifest's
+ <a href="{@docRoot}guide/topics/manifest/application-element.html"><code>&lt;application&gt;</code>
+ </a> tag. For example:
</p>
<pre class="fragment">
-&lt;application&gt;
- ...
- &lt;meta-data android:name="isGame" android:value="true" &gt;
- ...
-&lt;/application&gt;
+&lt;application
+ ...
+ android:isGame="true"
+ ...
+&gt;
</pre>
diff --git a/docs/html/training/tv/start/start.jd b/docs/html/training/tv/start/start.jd
index bebeedd..3b26abf 100644
--- a/docs/html/training/tv/start/start.jd
+++ b/docs/html/training/tv/start/start.jd
@@ -100,7 +100,8 @@ startpage=true
<p>The following code snippet shows how to include this intent filter in your manifest:</p>
<pre>
-&lt;application&gt;
+&lt;application
+ android:banner="&#64;drawable/banner" &gt;
...
&lt;activity
android:name=&quot;com.example.android.MainActivity&quot;
@@ -141,6 +142,34 @@ startpage=true
"{@docRoot}training/tv/start/layouts.html">Building TV Layouts</a>.
</p>
+<h3 id="banner">Provide a home screen banner</h3>
+
+<p>
+ An application must provide a home screen banner if it includes a Leanback launcher intent
+ filter. The banner is the app launch point that appears on the home screen in the apps and
+ games rows. Desribe the banner in the manifest as follows:
+</p>
+
+<pre>
+&lt;application
+ . . .
+ android:banner="&#64;drawable/banner" &gt;
+ . . .
+&lt;/application&gt;
+</pre>
+
+<p>
+ Use the <a href="{@docRoot}guide/topics/manifest/application-element.html#banner">{@code android:banner}</a>
+ attribute with the <a href="{@docRoot}guide/topics/manifest/application.html"><code>&lt;application&gt;</code></a>
+ tag to supply a default banner for all application activities, or with the
+ <a href="{@docRoot}guide/topics/manifest/activity-element.html"><code>&lt;activity&gt;</code></a>
+ tag to supply a banner for a specific activity.
+</p>
+
+<p>
+ See <a href="{@docRoot}design/tv/patterns.html#banner">Banners</a> in the UI Patterns for TV
+ design guide.
+</p>
<h3 id="tv-libraries">Add TV support libraries</h3>