Try to implement OnMarkerClickListner
and override onMarkerClick
method.
Hava a look at this
質問
I need to know if user touch the marker.
Any idea? I hope that somebody help me.
解決
Try to implement OnMarkerClickListner
and override onMarkerClick
method.
Hava a look at this
他のヒント
Put this code below inside onMapReady(GoogleMap googleMap){..}
mMap = googleMap;
mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {
@Override
public boolean onMarkerClick(Marker marker) {
Log.e("Testing",marker.getTitle());
return false;
}
});