docs: Fixed reference to "android:windowContentTransitions"

Per bug, we should not be telling people to use
android:windowContentTransitions to specify custom transitions;
instead, they should use android:windowActivityTransitions (which
is set to 'true' by default in the Material theme).

See first comment for doc stage location.

bug: 19440221
Change-Id: I35696c595a8424eab27d73b62835ddd79e3ca109
This commit is contained in:
Andrew Solovay
2015-12-21 16:24:21 -08:00
parent dee655c406
commit 84fc4a549c

View File

@@ -194,16 +194,16 @@ activated between the entering and exiting activities.</p>
  <strong>Figure 2</strong> - A scene transition with one shared element.
</p>
<h3>Specify custom transitions</h3>
<h3 id="custom-trans">Specify custom transitions</h3>
<p>First, enable window content transitions with the <code>android:windowContentTransitions</code>
<p>First, enable window content transitions with the <code>android:windowActivityTransitions</code>
attribute when you define a style that inherits from the material theme. You can also specify
enter, exit, and shared element transitions in your style definition:</p>
<pre>
&lt;style name="BaseAppTheme" parent="android:Theme.Material">
&lt;!-- enable window content transitions -->
&lt;item name="android:windowContentTransitions">true&lt;/item>
&lt;item name="android:android:windowActivityTransitions">true&lt;/item>
&lt;!-- specify enter and exit transitions -->
&lt;item name="android:windowEnterTransition">@transition/explode&lt;/item>