问题
I would like to change the color of the status bar to match my app background, how can I do this?
回答1:
It is possible by placing a colors.xml file under the CN1 project <project>/native/android
directory with the following example content:
<resources>
<color name="colorPrimary">#ffffc003</color>
<color name="colorPrimaryDark">#ffffc003</color>
<color name="colorAccent">#ff009486</color>
</resources>
Where in this case the colorPrimaryDark is the color you would like to color the status bar
来源:https://stackoverflow.com/questions/34904705/how-to-change-the-color-of-the-status-bar-in-a-codenameone-android-app