Home | History | Annotate | Download | only in util

Lines Matching refs:event

26  * coordinates of the motion event to the provided bounds.
71 * Will forward touch events to the delegate view if the event is within the bounds
74 * @param event The touch event to forward
75 * @return True if the event was forwarded to the delegate, false otherwise.
77 public boolean onTouchEvent(MotionEvent event) {
79 switch (event.getAction()) {
81 mDelegateTargeted = mTouchCheckBounds.contains(event.getX(), event.getY());
83 mWasTouchOutsideBounds = !mBounds.contains(event.getX(), event.getY());
98 float x = event.getX();
99 float y = event.getY();
101 event.setLocation(mBounds.centerX(), mBounds.centerY());
103 event.offsetLocation(-mBounds.left, -mBounds.top);
105 handled = mDelegateView.dispatchTouchEvent(event);
106 event.setLocation(x, y);