windowIsTranslucent set to true, exitAnim does not work

590 Views Asked by At

I'm trying to make custom transition animations when opening a new activity using:

overridePendingTransition(R.anim.zoom_in, R.anim.go_out);

The new activity has the following theme:

<style name="Modal" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:backgroundDimEnabled">false</item>
</style>

I discovered that the property that makes exitAnim not work is "windowIsTranslucent" set to true. If I comment that line out , then my "go_out" exit animation works just fine.

Any solution for this problem?

0

There are 0 best solutions below