Android Question Сolor of curtain icons and color of bottom buttons

red30

Well-Known Member
Licensed User
Longtime User
In the manifest, I have set the colors:
Java:
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, colors.xml,
<resources>
    <color name="actionbar">#ffffffff</color>
   <color name="statusbar">#ffffffff</color>
   <color name="textColorPrimary">#ff000000</color>
   <color name="navigationBar">#ffffffff</color>
</resources>
)
CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light">
        <item name="colorPrimary">@color/actionbar</item>
        <item name="colorPrimaryDark">@color/statusbar</item>
        <item name="android:textColorPrimary">@color/textColorPrimary</item>
        <item name="android:navigationBarColor">@color/navigationBar</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="windowActionModeOverlay">true</item>
    </style>
</resources>
)
I set the statusbar and navigationBar to white.
Also in the upper curtain, the icons (network, battery charge, etc.) are also white. How do I make the icons black? The same goes for the bottom buttons (all apps, home and back). They are also white and blend in with the white navigationBar. How do I make these buttons black?
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
Try using:
B4X:
<item name="android:windowLightNavigationBar">true</item>
<item name="android:windowLightStatusBar">true</item>
This will give you a white status & navigation bar with dark icons & buttons.
I think this only works for API 23+ for the status bar & API 27+ for the navigation bar though.

- Colin.
 
Upvote 1
Cookies are required to use this site. You must accept them to continue using the site. Learn more…