系統(tǒng)欄已經(jīng)做過處理,但是在啟動(dòng)APP時(shí)系統(tǒng)欄還是會(huì)有一瞬間是藍(lán)色的。解決起來很簡單,在res/values/style中,把下面代碼
<!-- Base application theme. --><style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item></style>
中的@color/colorPrimaryDark
改成 @color/white
或者其他顏色都可以
總結(jié)
以上所述是小編給大家介紹的解決Android啟動(dòng)APP的一瞬間系統(tǒng)欄會(huì)變成藍(lán)色問題,希望對(duì)大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)武林網(wǎng)網(wǎng)站的支持!
新聞熱點(diǎn)
疑難解答
圖片精選