From ed4ff6be98152b1b138906fa95f79c2f7d811bae Mon Sep 17 00:00:00 2001 From: Daniel Yu Date: Thu, 19 Nov 2015 10:41:14 -0800 Subject: [PATCH] docs: New section explaining how to set the custom launch color of TV app NOTE: Cherry picked from: https://googleplex-android-review.git.corp.google.com/#/c/732032/ Contains updates incorporating all feedback from Andy's original CL. Updated with suggestion from Andrew. Bug: 21274505 Change-Id: If43ba81e770a39239108b8fa9731c2b4df3a9ae6 --- docs/html/training/tv/start/start.jd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/html/training/tv/start/start.jd b/docs/html/training/tv/start/start.jd index e55e2026fad06..743b61b1acf7f 100644 --- a/docs/html/training/tv/start/start.jd +++ b/docs/html/training/tv/start/start.jd @@ -228,6 +228,27 @@ supported by Android TV.

design guide.

+

Change the launcher color

+ +

When a TV app launches, the system displays an animation that resembles an expanding, filled + circle. To customize the color of this animation, set the android:colorPrimary + attribute of your TV app or activity to a specific color. You should also set two additional + transition overlap attributes to true, as shown in the following snippet from a + theme resource XML file:

+ +
+<resources>
+    <style ... >
+      <item name="android:colorPrimary">@color/primary</item>
+      <item name="android:windowAllowReturnTransitionOverlap">true</item>
+      <item name="android:windowAllowEnterTransitionOverlap">true</item>
+    </style>
+</resources>
+
+ +

For more information about working with themes and styles, see +Styles and Themes.

+

Add TV Support Libraries