1. Check out our app, Forums for Android! Download and leave feedback here!

Adding zoom out animation to the activity

Discussion in 'Android Apps & Games' started by Pads, Sep 17, 2010.

  1. Pads

    Pads New Member
    Thread Starter
    5

    Jul 30, 2010
    2
    0
    5
    Hi All,

    I have customized my activity to bring it like a dialog. Now I want to stop the default animation and have to add the zoom out animation.

    To stop the animation I have tried the following.

    customDialog.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);

    and in styles

    <style name="Theme.CustomDialog" parent="android:style/Theme.Dialog">
    <item name="android:windowBackground">@drawable/translucent_background</item>
    <item name="android:activityOpenEnterAnimation">@null</item>
    <item name="android:activityOpenExitAnimation">@null</item>
    <item name="android:activityCloseEnterAnimation">@null</item>
    <item name="android:activityCloseExitAnimation">@null</item>
    <item name="android:taskOpenEnterAnimation">@null</item>
    <item name="android:taskOpenExitAnimation">@null</item>
    <item name="android:taskCloseEnterAnimation">@null</item>
    <item name="android:taskCloseExitAnimation">@null</item>
    <item name="android:taskToFrontEnterAnimation">@null</item>
    <item name="android:taskToFrontExitAnimation">@null</item>
    <item name="android:taskToBackEnterAnimation">@null</item>
    <item name="android:taskToBackExitAnimation">@null</item>
    </style>

    Even thought it is not working.

    Can anyone tel me how to stop the default animation and add the zoom out animation to the activity.

    Thanks in advance.
     

    Advertisement

Share This Page

Loading...