質問

I need to know if user touch the marker.

enter image description here

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;
    }
});
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top