冷啟動(dòng)秒開
目前基本上為了看到應(yīng)用秒開的效果,我們都會(huì)在啟動(dòng)頁的主題設(shè)置logo的背景圖,如下這樣:
<style name="theme_splash" parent="theme_fullScreen">
<item name="android:windowBackground">@drawable/layer_splash_space</item>
</style>
這怎么能忍唉工,其實(shí)解決這個(gè)問題很簡(jiǎn)單,像這樣:
<style name="theme_splash" parent="theme_fullScreen">
<item name="android:background">@drawable/layer_splash_space</item>
</style>
將android:windowBackground改為android:background就可以啦汹忠,不知道這兩個(gè)屬性含義請(qǐng)自行g(shù)oogle