2
Good afternoon, my question is this::
I have a submenu, where the user will select the map Layer.
These Submenu’s will have an image of check in to indicate which one is selected.
Follows the xml:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:com.app.map="http://schemas.android.com/apk/res-auto">
    <item android:id="@+id/action_layers"
        android:icon="@mipmap/ic_layers"
        android:title="@string/camadas"
        com.app.map:showAsAction="always">
        <menu>
            <item android:id="@+id/layer_normal"
                android:title="@string/normal"
                android:icon="@android:drawable/checkbox_on_background">
            </item>
            <item android:id="@+id/layer_satelite"
                android:icon="@android:drawable/checkbox_off_background"
                android:title="@string/satelite">
            </item>
            <item android:id="@+id/layer_terreno"
                android:icon="@android:drawable/checkbox_off_background"
                android:title="@string/terreno">
            </item>
        </menu>
    </item>
</menu>
My question is how to remove the icon from the previous selection.
A Case:
By default it comes with Layer Normal, when clicking on Satellite, as I get the Normal reference to remove/exchange your image???
Thanks for your cooperation! Cordial Greetings,
You want to know how to change the checkbox image ?
– Eduardo Binotto
Not exactly, I want to change the menu icon.
– Thiago Luiz Domacoski