Android Question How to change the Navigation Bar icon colors

Sannie72

Member
Licensed User
Longtime User
I noticed something I have not been able to change yet.
In my app the icons on the navigation bar are shown white on a white background.
This is not very easy to see ;)

My manifest text is as follows:
(mainly like decribed here: https://www.b4x.com/android/forum/threads/theme-colors.87716/ )
screen.png
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
        AddManifestText(<uses-feature android:name="android.hardware.telephony" android:required="false" />)
        AddManifestText(<uses-feature android:name="android.hardware.camera" android:required="false" />)
        AddManifestText(<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />)
        AddManifestText(<uses-feature android:name="android.hardware.camera.flash" android:required="false" />)
        AddPermission("android.permission.INTERNET")
        AddPermission("android.permission.ACCESS_FINE_LOCATION")
        AddPermission("android.permission.WAKE_LOCK")
        AddPermission("android.permission.DEVICE_POWER")
        AddPermission("android.permission.READ_PHONE_STATE")
        AddPermission("android.permission.VIBRATE")
        AddPermission("android.permission.CAMERA")
        AddPermission("android.permission.FLASHLIGHT")
        AddPermission("android.hardware.camera")
        SetApplicationAttribute(android:icon, "@drawable/icon")
        SetApplicationAttribute(android:label, "$LABEL$")
        AddApplicationText(<activity android:name="de.amberhome.objects.preferenceactivity"/>)
        AddApplicationText(<activity android:name="ice.zxing.CaptureActivity"
                    android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden"
                    android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                    android:windowSoftInputMode="stateAlwaysHidden">
                </activity>)  
SetApplicationAttribute(android:icon, "@drawable/icon")

SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, colors.xml,
<resources>
    <color name="actionbar">#ffffffff</color>
   <color name="statusbar">#ff000000</color>
   <color name="textColorPrimary">#ff000000</color>
   <color name="navigationBar">#ffffffff</color>
</resources>
)
CreateResource(values-v20, theme.xml,
<resources>
    <style name="LightTheme" parent="@android:style/Theme.Material.Light">
        <item name="android:colorPrimary">@color/actionbar</item>
        <item name="android:colorPrimaryDark">@color/statusbar</item>
        <item name="android:textColorPrimary">@color/textColorPrimary</item>
        <item name="android:navigationBarColor">@color/navigationBar</item>
    </style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
    <style name="LightTheme" parent="@android:style/Theme.Holo.Light">
       <item name="android:actionBarStyle">@style/CustomActionBarStyle</item>
    </style>
   <style name="CustomActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
       <item name="android:background">@color/actionbar</item>
   </style>
</resources>
)

Who can tell me how to change the color of these icons so they are easily recognisable?
 
Top