Lines Matching defs:event
43 // True if the most recent DOWN event was a "hit".
47 * Called when a touch event is dispatched to a view. This allows listeners to
50 * @return True if the listener has consumed the event, false otherwise.
56 public boolean onTouch(View v, MotionEvent event) {
57 // if (DBG) log("SmallerHitTargetTouchListener: " + v + ", event " + event);
59 if (event.getAction() == MotionEvent.ACTION_DOWN) {
60 // Note that event.getX() and event.getY() are already
63 final int touchX = (int) event.getX();
64 final int touchY = (int) event.getY();
97 return true; // Consume this event; don't let the button see it
102 return false; // Let this event through to the actual button
105 // This is a MOVE, UP or CANCEL event.
109 // through to the actual button IFF the previous DOWN event