SherlockMapActivity y evento onTap
Frecuentes
Visto 247 veces
0
Estoy usando este complemento: https://github.com/JakeWharton/ActionBarSherlock-Plugin-Maps/downloads
To have MapViewActivity inside ABS.
My probleme is I want to detect the onTap event on the map, not on the overlay and the onTap method doens't seems to be present in the SherlockMapActivity.class
Cómo hacerlo ?
Gracias.
1 Respuestas
1
SherlockMapActivity
es solo una extensión de MapActivity
that add the capabilities of ActionBarSherlock
En el correo electrónico “Su Cuenta de Usuario en su Nuevo Sistema XNUMXCX”. MapActivity
. However, it doesn't add an onTap
método y MapActivity
doesn't provide one either.
I guess what you are trying to detect a tap on the MapView
. Several methods exists in order to do so. One of my favorite is to add a custom Overlay
that does nothing but detects the tap. This Overlay
has to be added at the first overlay in the getOverlays()
's List
in order to have its onTap
method called after all other Overlay
s
Respondido 28 ago 12, 14:08
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas android-mapview actionbarsherlock or haz tu propia pregunta.
Yep you are right, I miss read the code I found, there was an static Overlay on the middle on the Activity class and I thought, onTap was a MapActivity method... - viejo