Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can define your animation with a custom theme. Here is what you basically need. Assuming you know how to use a theme, if not that is a separate question. Below just delete any line you don't want to define your own animation for and it will fall back to the default android animation. </p> <pre><code>&lt;!-- this goes in your theme --&gt; &lt;item name="android:windowAnimationStyle"&gt;@style/MyActivityAnimations&lt;/item&gt; &lt;!-- Standard animations for a full-screen window or activity. --&gt; &lt;style name="MyActivityAnimations" parent="@android:style/Animation.Activity"&gt; &lt;item name="activityOpenEnterAnimation"&gt;@anim/activity_open_enter&lt;/item&gt; &lt;item name="activityOpenExitAnimation"&gt;@anim/activity_open_exit&lt;/item&gt; &lt;item name="activityCloseEnterAnimation"&gt;@anim/activity_close_enter&lt;/item&gt; &lt;item name="activityCloseExitAnimation"&gt;@anim/activity_close_exit&lt;/item&gt; &lt;item name="taskOpenEnterAnimation"&gt;@anim/task_open_enter&lt;/item&gt; &lt;item name="taskOpenExitAnimation"&gt;@anim/task_open_exit&lt;/item&gt; &lt;item name="taskCloseEnterAnimation"&gt;@anim/task_close_enter&lt;/item&gt; &lt;item name="taskCloseExitAnimation"&gt;@anim/task_close_exit&lt;/item&gt; &lt;item name="taskToFrontEnterAnimation"&gt;@anim/task_open_enter&lt;/item&gt; &lt;item name="taskToFrontExitAnimation"&gt;@anim/task_open_exit&lt;/item&gt; &lt;item name="taskToBackEnterAnimation"&gt;@anim/task_close_enter&lt;/item&gt; &lt;item name="taskToBackExitAnimation"&gt;@anim/task_close_exit&lt;/item&gt; &lt;item name="wallpaperOpenEnterAnimation"&gt;@anim/wallpaper_open_enter&lt;/item&gt; &lt;item name="wallpaperOpenExitAnimation"&gt;@anim/wallpaper_open_exit&lt;/item&gt; &lt;item name="wallpaperCloseEnterAnimation"&gt;@anim/wallpaper_close_enter&lt;/item&gt; &lt;item name="wallpaperCloseExitAnimation"&gt;@anim/wallpaper_close_exit&lt;/item&gt; &lt;item name="wallpaperIntraOpenEnterAnimation"&gt;@anim/wallpaper_intra_open_enter&lt;/item&gt; &lt;item name="wallpaperIntraOpenExitAnimation"&gt;@anim/wallpaper_intra_open_exit&lt;/item&gt; &lt;item name="wallpaperIntraCloseEnterAnimation"&gt;@anim/wallpaper_intra_close_enter&lt;/item&gt; &lt;item name="wallpaperIntraCloseExitAnimation"&gt;@anim/wallpaper_intra_close_exit&lt;/item&gt; &lt;/style&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload