Lines Matching refs:touch
31 … <li>Design Guide for <a href="{@docRoot}design/style/touch-feedback.html">Touch Feedback</a></li>
46 <p>Handling touch events in a {@link android.view.ViewGroup} takes special care,
48 are targets for different touch events than the {@link android.view.ViewGroup}
49 itself. To make sure that each view correctly receives the touch events intended
56 method is called whenever a touch event is detected on the surface of a
64 method gives a parent the chance to see any touch event before its children do.
67 the child view that was previously handling touch events
80 a child view horizontally, the child view should no longer get touch events, and
81 {@code MyViewGroup} should handle touch events by scrolling its contents. However,
83 the parent shouldn't intercept those touch events, because the child is the
111 // Always handle the case of the touch gesture being complete.
115 return false; // Do not intercept touch event, let the child handle it
122 // touch event!
127 // the touch slop, start the scroll
144 // In general, we don't want to intercept touch events. They should be
151 // Here we actually handle the touch event (e.g. if the action is ACTION_MOVE,
153 // This method will only be called if the touch event was intercepted in
162 ancestors to intercept touch events with
174 <p>"Touch slop" refers to the distance in pixels a user's touch can wander
176 prevent accidental scrolling when the user is performing some other touch
215 This is useful when the child has to be small, but should have a larger touch region. You can
216 also use this approach to shrink the child's touch region if need be.</p>
219 "delegate view" (that is, the child whose touch area the parent will extend).
244 …roid.view.TouchDelegate} on the parent view, such that touches within the touch delegate bounds ar…
248 In its capacity as touch delegate for the {@link android.widget.ImageButton} child view, the
249 parent view will receive all touch events. If the touch event occurred within the child's hit
250 rectangle, the parent will pass the touch
279 "Touch occurred within ImageButton touch region.",
287 // Extend the touch area of the ImageButton beyond its bounds
301 // within the touch delegate bounds are routed to the child.