android maps: How to Long Click a Map?

后端 未结 8 1808
遥遥无期
遥遥无期 2020-12-02 12:41

How do I long click on a mapview so that a place marker appears at that point on the map?

I tried a couple ways without success:

1) Using setOnLongCl

8条回答
  •  死守一世寂寞
    2020-12-02 13:06

    Best way I know to do this is to use the open source mapview-overlay-manager and use its gesture listener which provides a callback for

    public void onLongPress(MotionEvent e, ManagedOverlay overlay)
    

提交回复
热议问题