From 3e5dd3d9271a4bd25801c534ce1f08c5093f2f86 Mon Sep 17 00:00:00 2001 From: Joe Fernandez Date: Tue, 24 Jun 2014 18:22:25 -0700 Subject: docs: Fixes for Android TV Dev Guide Change-Id: I9abe240a64fc4e9fcfcc46b378bf0bd0c316cc9e --- docs/html/preview/tv/start/index.jd | 8 +++----- docs/html/preview/tv/ui/browse.jd | 9 ++++----- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'docs/html/preview') diff --git a/docs/html/preview/tv/start/index.jd b/docs/html/preview/tv/start/index.jd index 11d6ad3..b75fee0 100644 --- a/docs/html/preview/tv/start/index.jd +++ b/docs/html/preview/tv/start/index.jd @@ -153,8 +153,7 @@ page.tags="leanback","recyclerview","launcher"

If you decide to use the v17 leanback library for your app, you should note that it is - dependent on the v7 - appcompat library, which is, in turn, dependent on the + dependent on the v4 support library. This means that apps that use the leanback support library should include all of these support libraries:

@@ -162,12 +161,11 @@ page.tags="leanback","recyclerview","launcher" -

Two of these libraries (v17 leanback and v7 appcompat) contain resources, which require - you to take specific steps to include them in app projects. For instructions on +

The v17 leanback library contain resources, which requires + you to take specific steps to include it in app projects. For instructions on importing a support library with resources, see Support Library Setup. diff --git a/docs/html/preview/tv/ui/browse.jd b/docs/html/preview/tv/ui/browse.jd index d7a1fb6..d6b97c1 100644 --- a/docs/html/preview/tv/ui/browse.jd +++ b/docs/html/preview/tv/ui/browse.jd @@ -152,10 +152,9 @@ private void buildRowsAdapter() { image as users browse through content. This technique can make interaction with your app feel more cinematic and enjoyable for users.

-

The Leanback support library provides a {@link - android.support.v17.leanback.app.BackgroundManager} class for changing the background of your TV - app activity. The following example shows how to create a simple method for updating the - background within your TV app activity:

+

The Leanback support library provides a {@code BackgroundManager} class for changing the + background of your TV app activity. The following example shows how to create a simple method + for updating the background within your TV app activity:

 protected void updateBackground(Drawable drawable) {
@@ -166,7 +165,7 @@ protected void updateBackground(Drawable drawable) {
 

Many of the existing media-browse apps automatically update the background as the user navigates through media listings. In order to do this, you can set up a selection listener to automatically update the background based on the user's current selection. The following example - shows you how to set up an {@link android.support.v17.leanback.widget.OnItemSelectedListener} + shows you how to set up an {@code OnItemSelectedListener} class to catch selection events and update the background:

-- 
cgit v1.1