I want to disable clicking/tapping on map markers
. I know you can disable default behavior
by setting up an empty map.setOnMarkerClickListener
class MyInfoWindowAdapter implements GoogleMap.InfoWindowAdapter
{
@Override
public View getInfoContents(Marker mar)
{
return null;
}
@Override
public View getInfoWindow(Marker mar)
{
return null;
}
}
gmap.setInfoWindowAdapter(new MyInfoWindowAdapter);
Try this code above. This will set your infowindow to null.