samedi 3 décembre 2016

Change style of checked checkbox in Option menu item

I am trying to create an Option Menu with checkboxes. However, for some reason, the checked checkboxes are white. Which makes them very hard to see on the light gray background. I don't know why they are white. The text and the unchecked checkboxes are dark gray. I've been trying to make them the same color as the unchecked boxes but couldn't figure out how. Here is a screenshot of them:

Screenshot

And this is what my menu.xml looks like:

<menu xmlns:android="http://ift.tt/nIICcg"
    xmlns:app="http://ift.tt/GEGVYd">
    <group
        android:checkableBehavior="all">
        <item
            android:id="@+id/location"
            android:title="@string/menuUseLocation"
            android:checked="true"
            app:showAsAction="never" />
        <item
            android:id="@+id/map"
            android:title="@string/menuUseHypridMap"
            android:checked="false"
            app:showAsAction="never" />
        <item
            android:id="@+id/vibration"
            android:title="@string/menuUseVibration"
            android:checked="true"
            app:showAsAction="never" />
    </group>
</menu>

Any ideas about how to fix this problem?




Aucun commentaire:

Enregistrer un commentaire