Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97e338ae authored by Dan Yu's avatar Dan Yu Committed by android-build-merger
Browse files

Merge "docs: New section explaining how to set the custom launch color of TV app" into mnc-docs

am: e3e54702

* commit 'e3e54702':
  docs: New section explaining how to set the custom launch color of TV app
parents 519d3e99 e3e54702
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -228,6 +228,27 @@ supported by Android TV.</p>
  design guide.
</p>

<h3 id="transition-color">Change the launcher color</h3>

<p>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 <code>android:colorPrimary</code>
  attribute of your TV app or activity to a specific color. You should also set two additional
  transition overlap attributes to <code>true</code>, as shown in the following snippet from a
  theme resource XML file:</p>

<pre>
&lt;resources&gt;
    &lt;style ... &gt;
      &lt;item name="android:colorPrimary"&gt;&#64;color/primary&lt;/item&gt;
      &lt;item name="android:windowAllowReturnTransitionOverlap"&gt;true&lt;/item&gt;
      &lt;item name="android:windowAllowEnterTransitionOverlap"&gt;true&lt;/item&gt;
    &lt;/style&gt;
&lt;/resources&gt;
</pre>

<p>For more information about working with themes and styles, see
<a href="{@docRoot}guide/topics/ui/themes.html">Styles and Themes</a>.</p>

<h2 id="tv-libraries">Add TV Support Libraries</h3>

<p>