문제

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