Loading docs/html/training/material/animations.jd +3 −3 Original line number Diff line number Diff line Loading @@ -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> <style name="BaseAppTheme" parent="android:Theme.Material"> <!-- enable window content transitions --> <item name="android:windowContentTransitions">true</item> <item name="android:android:windowActivityTransitions">true</item> <!-- specify enter and exit transitions --> <item name="android:windowEnterTransition">@transition/explode</item> Loading Loading
docs/html/training/material/animations.jd +3 −3 Original line number Diff line number Diff line Loading @@ -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> <style name="BaseAppTheme" parent="android:Theme.Material"> <!-- enable window content transitions --> <item name="android:windowContentTransitions">true</item> <item name="android:android:windowActivityTransitions">true</item> <!-- specify enter and exit transitions --> <item name="android:windowEnterTransition">@transition/explode</item> Loading