Splash界面白屏或者黑屏问题

@bingoogolapple 2014-09-29 01:37:43发表于 bingoogolapple/bingoogolapple.github.io Android

    <style name="Theme.Splash" parent="@android:style/Theme.Light.NoTitleBar">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowAnimationStyle">@style/Animation.Activity.Splash</item>
    </style>

    <style name="Animation.Activity.Splash" parent="@android:style/Animation.Activity">
        <item name="android:activityOpenEnterAnimation">@*android:anim/fade_in</item>
        <item name="android:activityOpenExitAnimation">@*android:anim/fade_out</item>
        <item name="android:activityCloseEnterAnimation">@*android:anim/fade_in</item>
        <item name="android:activityCloseExitAnimation">@*android:anim/fade_out</item>
        <item name="android:taskOpenEnterAnimation">@*android:anim/fade_in</item>
        <item name="android:taskOpenExitAnimation">@*android:anim/fade_out</item>
        <item name="android:taskCloseEnterAnimation">@*android:anim/fade_in</item>
        <item name="android:taskCloseExitAnimation">@*android:anim/fade_out</item>
        <item name="android:taskToFrontEnterAnimation">@*android:anim/fade_in</item>
        <item name="android:taskToFrontExitAnimation">@*android:anim/fade_out</item>
        <item name="android:taskToBackEnterAnimation">@*android:anim/fade_in</item>
        <item name="android:taskToBackExitAnimation">@*android:anim/fade_out</item>
    </style>