Android避免启动时闪一下黑屏

在style.xml文件中加入


<style name="Theme.AppStartLoadTranslucent" parent="android:Theme">  
            <item name="android:windowIsTranslucent">true</item> 
	    <item name="android:windowNoTitle">true</item>  
	</style>


再在你的配置文件中加入:


<application
        android:name="com.xx.xx.xx"
        android:debuggable="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.AppStartLoadTranslucent" >

这样就搞定了


版权声明:本文为mzz5240原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。