Is there any way to disable the highlight effect that comes when user clicks on a InfoWindow
in the new Mapsv2 Api
for Android?
This is an issue with both the getIfoContent()
and the getInfoWindow()
methods. With the getInfoWindow()
its the text which highlights.
In simple words "YOU CANT" .
because as per documentation "An info window is not a live View, rather the view is rendered as an image onto the map. As a result, any listeners you set on the view are disregarded and you cannot distinguish between click events on various parts of the view. You are advised not to place interactive components — such as buttons, checkboxes, or text inputs — within your custom info window."
So, in short u can't handle any events on infowindow other than "OnInfoWindowClickListener"
For more check "https://developers.google.com/maps/documentation/android/marker".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With