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>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章