In the android app that I am building, I have custom markers. The shape of these markers will be circular. Now on marker click I want to change to color of the marker.
Following are the 2 ways that come to my mind:
- Have 2 external images, one for unselected mode and one for selected mode. Set the unselected image as the default marker icon and on marker click change the marker icon to the selected mode.
- Define a circle drawable in XML. Set this drawable as the icon for the markers. On Marker click simply change the color of the drawable.
Please suggest what could be the best way to do this?