Android: ItemizedOverlay onTouchEvent and onTap overlapping

前端 未结 3 1857
滥情空心
滥情空心 2020-12-15 14:49

I am trying to place a marker on a map overlay and then present a dialog when the user selects the drawable. The problem is the events seem to overlap. After I click the m

3条回答
  •  半阙折子戏
    2020-12-15 15:23

    I think that the problem is fundamentally that the onTap is a particular onTouchEvent, so if you write both in the overlay they are both fired when you touch the map

    You could try to add a new overlay item in one of the touch events you implemented in your mapActivity and leave the onTap event in the overlay as it is right now

    it might work this way but you have to try, I'm not sure!

提交回复
热议问题