moagrius / MapView

(Deprecated, prefer https://github.com/moagrius/TileView) Android widget roughly described as a hybrid between com.google.android.maps.MapView and iOS's CATiledLayer
http://moagrius.github.com/MapView/documentation
69 stars 35 forks source link

How to listen onLongPress event? #61

Closed yolapop closed 11 years ago

moagrius commented 11 years ago

of what? a marker? just like you would any View...

yolapop commented 11 years ago

No, on the map..

moagrius commented 11 years ago

There is no MapEventListener callback for a longpress, so you'd do so like you would any other ViewGroup (e.g., FrameLayout)... You could assign a listener directly, but that'd probably consume it and break existing touch management, or you could override onTouch, etc.

yolapop commented 11 years ago

Alright thank you sir for the answer. I was actually looking for something like hotspot and just found it..

moagrius commented 11 years ago

No problem, glad you got it figured out. Just FYI, this widget is going to be "superceded" by another in the next few weeks (hopefully), which (among other things) will have a more flexible hotspot system, so you may want to check back for that release.