Good afternoon, my question is this:
I have a subMenu, where the user will select the Map Layer.
These SubMenu's will have a check image to tell you which one is selected.
Follow 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.
An Example:
By default it comes with the Normal Layer, when clicking on Satellite, how do I get the Normal reference to remove / change your image ???
Thank you for your cooperation! Best Regards,