com.google.marvin.widget
Class GestureOverlay
java.lang.Object
View
com.google.marvin.widget.GestureOverlay
public class GestureOverlay
- extends View
A transparent overlay which catches all touch events and uses a call back to
return the gesture that the user performed.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GestureOverlay
public GestureOverlay(Context context,
GestureOverlay.GestureListener callback)
GestureOverlay
public GestureOverlay(Context context)
setGestureListener
public void setGestureListener(GestureOverlay.GestureListener callback)
setMinimumRadius
public void setMinimumRadius(int minRadius)
onTouchEvent
public boolean onTouchEvent(MotionEvent event)
evalMotion
public int evalMotion(double x,
double y)