Home | History | Annotate | Download | only in view

Lines Matching defs:parent

41      * Called by a child to request from its parent to send an {@link AccessibilityEvent}.
43 * to its parent to send the event. The parent can optionally add a record for itself.
46 * event with a record for its state and requests from its parent to perform
47 * the sending. The parent can optionally add a record for itself before
48 * dispatching the request to its parent. A parent can also choose not to
52 * @param parent The parent whose method to invoke.
62 ViewParent parent, View child, AccessibilityEvent event) {
63 return parent.requestSendAccessibilityEvent(child, event);
80 public static boolean onStartNestedScroll(ViewParent parent, View child, View target,
82 return onStartNestedScroll(parent, child, target, nestedScrollAxes, ViewCompat.TYPE_TOUCH);
97 public static void onNestedScrollAccepted(ViewParent parent, View child, View target,
99 onNestedScrollAccepted(parent, child, target, nestedScrollAxes, ViewCompat.TYPE_TOUCH);
110 public static void onStopNestedScroll(ViewParent parent, View target) {
111 onStopNestedScroll(parent, target, ViewCompat.TYPE_TOUCH);
127 public static void onNestedScroll(ViewParent parent, View target, int dxConsumed,
129 onNestedScroll(parent, target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed,
143 * @param consumed Output. The horizontal and vertical scroll distance consumed by this parent
145 public static void onNestedPreScroll(ViewParent parent, View target, int dx, int dy,
147 onNestedPreScroll(parent, target, dx, dy, consumed, ViewCompat.TYPE_TOUCH);
155 * {@link ViewCompat#startNestedScroll(View, int)}. Each parent up the view hierarchy will be
161 * true, this ViewParent will become the target view's nested scrolling parent for the duration
174 public static boolean onStartNestedScroll(ViewParent parent, View child, View target,
176 if (parent instanceof NestedScrollingParent2) {
178 return ((NestedScrollingParent2) parent).onStartNestedScroll(child, target,
184 return parent.onStartNestedScroll(child, target, nestedScrollAxes);
186 Log.e(TAG, "ViewParent " + parent + " does not implement interface "
189 } else if (parent instanceof NestedScrollingParent) {
190 return ((NestedScrollingParent) parent).onStartNestedScroll(child, target,
215 public static void onNestedScrollAccepted(ViewParent parent, View child, View target,
217 if (parent instanceof NestedScrollingParent2) {
219 ((NestedScrollingParent2) parent).onNestedScrollAccepted(child, target,
225 parent.onNestedScrollAccepted(child, target, nestedScrollAxes);
227 Log.e(TAG, "ViewParent " + parent + " does not implement interface "
230 } else if (parent instanceof NestedScrollingParent) {
231 ((NestedScrollingParent) parent).onNestedScrollAccepted(child, target,
250 public static void onStopNestedScroll(ViewParent parent, View target, int type) {
251 if (parent instanceof NestedScrollingParent2) {
253 ((NestedScrollingParent2) parent).onStopNestedScroll(target, type);
258 parent.onStopNestedScroll(target);
260 Log.e(TAG, "ViewParent " + parent + " does not implement interface "
263 } else if (parent instanceof NestedScrollingParent) {
264 ((NestedScrollingParent) parent).onStopNestedScroll(target);
292 public static void onNestedScroll(ViewParent parent, View target, int dxConsumed,
294 if (parent instanceof NestedScrollingParent2) {
296 ((NestedScrollingParent2) parent).onNestedScroll(target, dxConsumed, dyConsumed,
302 parent.onNestedScroll(target, dxConsumed, dyConsumed, dxUnconsumed,
305 Log.e(TAG, "ViewParent " + parent + " does not implement interface "
308 } else if (parent instanceof NestedScrollingParent) {
309 ((NestedScrollingParent) parent).onNestedScroll(target, dxConsumed, dyConsumed,
318 * <p>When working with nested scrolling often the parent view may want an opportunity
333 * @param consumed Output. The horizontal and vertical scroll distance consumed by this parent
337 public static void onNestedPreScroll(ViewParent parent, View target, int dx, int dy,
339 if (parent instanceof NestedScrollingParent2) {
341 ((NestedScrollingParent2) parent).onNestedPreScroll(target, dx, dy, consumed, type);
346 parent.onNestedPreScroll(target, dx, dy, consumed);
348 Log.e(TAG, "ViewParent " + parent + " does not implement interface "
351 } else if (parent instanceof NestedScrollingParent) {
352 ((NestedScrollingParent) parent).onNestedPreScroll(target, dx, dy, consumed);
368 * parent instead. The parent may optionally consume the fling or observe a child fling.</p>
374 * @return true if this parent consumed or otherwise reacted to the fling
377 public static boolean onNestedFling(ViewParent parent, View target, float velocityX,
381 return parent.onNestedFling(target, velocityX, velocityY, consumed);
383 Log.e(TAG, "ViewParent " + parent + " does not implement interface "
386 } else if (parent instanceof NestedScrollingParent) {
387 return ((NestedScrollingParent) parent).onNestedFling(target, velocityX, velocityY,
402 * <p>If a nested scrolling parent is consuming motion as part of a
405 * <code>true</code> from this method, the parent indicates that the child should not
411 * @return true if this parent consumed the fling ahead of the target view
414 public static boolean onNestedPreFling(ViewParent parent, View target, float velocityX,
418 return parent.onNestedPreFling(target, velocityX, velocityY);
420 Log.e(TAG, "ViewParent " + parent + " does not implement interface "
423 } else if (parent instanceof NestedScrollingParent) {
424 return ((NestedScrollingParent) parent).onNestedPreFling(target, velocityX,
431 * Notifies a view parent that the accessibility state of one of its
445 public static void notifySubtreeAccessibilityStateChanged(ViewParent parent, View child,
448 parent.notifySubtreeAccessibilityStateChanged(child, source, changeType);