[英]How to change the color of the navigation and status bar on Android Java?
[英]How to change the color of the status bar in a codenameone android app?
我想更改狀態欄的顏色以匹配我的應用背景,該怎么做?
可以通過將colors.xml文件放在CN1項目<project>/native/android
目錄下,並包含以下示例內容:
<resources>
<color name="colorPrimary">#ffffc003</color>
<color name="colorPrimaryDark">#ffffc003</color>
<color name="colorAccent">#ff009486</color>
</resources>
在這種情況下,colorPrimaryDark是您要為狀態欄着色的顏色
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.