Closed anhtuanBk closed 6 years ago
Hi, I'm trying to add OnLongClickListener to marker view like bellow:
pinpointView.setOnLongClickListener { val dragData = ClipData.newPlainText("pinpoint_id", pinpoint.id) val shadow = PinpointShadowBuilder(it) if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) { it.startDrag(dragData, shadow, pinpoint, 0) } else { it.startDragAndDrop(dragData, shadow, pinpoint, 0) } return@setOnLongClickListener false } addMarker(pinpointView, x, y)
but then the TileView's MarkerTapListener was overwrite. How can i resolve this problem ? Thank you.
use normal click listeners instead of MarkerTapListener
MarkerTapListener
Hi, I'm trying to add OnLongClickListener to marker view like bellow:
but then the TileView's MarkerTapListener was overwrite. How can i resolve this problem ? Thank you.