setAnimationStyle(R.style.FadeInPopWin);
<style name="FadeInPopWin">
<item name="android:backgroundDimEnabled">true</item>
<item name="@android:windowEnterAnimation">@anim/pop_win_content_fade_in</item>
<item name="@android:windowExitAnimation">@anim/pop_win_content_fade_out</item>
</style>
pop_win_content_fade_in:
<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="150"
android:fromAlpha="0"
android:toAlpha="1" />
pop_win_content_fade_out:
<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="150"
android:fromAlpha="1"
android:toAlpha="0" />