Back to project page favouritetv.
The source code is released under:
Copyright (c) 2011 Andr? Prata<andreprata@ua.pt> Eriksson Monteiro<eriksson.monteiro@ua.pt> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
If you think the Android project favouritetv listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pt.ua.code.favouritetv.gui; /*ww w . ja va 2 s .c o m*/ import android.content.Context; import android.util.AttributeSet; import android.view.GestureDetector; import android.view.MotionEvent; import android.view.GestureDetector.OnDoubleTapListener; import android.view.GestureDetector.OnGestureListener; import com.google.android.maps.MapView; public class MyMap extends MapView { private GestureDetector gestureDetector; public MyMap(Context context, AttributeSet attrs) { super(context, attrs); gestureDetector = new GestureDetector((OnGestureListener)context); gestureDetector.setOnDoubleTapListener((OnDoubleTapListener) context); } @Override public boolean onTouchEvent(MotionEvent ev) { if(this.gestureDetector.onTouchEvent(ev)) return true; else return super.onTouchEvent(ev); } }