1. 程式人生 > >Android 應用啟動閃白一下處理方法

Android 應用啟動閃白一下處理方法

應用程式啟動的時候,感覺會突然閃白一下,處理方式如下

1.直接刪除android:theme="@style/AppTheme"

 <application
        android:name="com.jchdcp.JchdcpApplication"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
或者是將AppTheme設定如下
<style name="AppBaseTheme" parent="android:Theme.Light"></style>

    <!-- Application theme. -->
    <style name="AppTheme" parent="AppBaseTheme">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowNoTitle">true</item>
    </style>