Udostępnij za pośrednictwem


ViewGroup.InvalidateChildInParent(Int32[], Rect) Method

Definition

Don't call or override this method.

[Android.Runtime.Register("invalidateChildInParent", "([ILandroid/graphics/Rect;)Landroid/view/ViewParent;", "GetInvalidateChildInParent_arrayILandroid_graphics_Rect_Handler")]
public virtual Android.Views.IViewParent? InvalidateChildInParent (int[]? location, Android.Graphics.Rect? dirty);
[<Android.Runtime.Register("invalidateChildInParent", "([ILandroid/graphics/Rect;)Landroid/view/ViewParent;", "GetInvalidateChildInParent_arrayILandroid_graphics_Rect_Handler")>]
abstract member InvalidateChildInParent : int[] * Android.Graphics.Rect -> Android.Views.IViewParent
override this.InvalidateChildInParent : int[] * Android.Graphics.Rect -> Android.Views.IViewParent

Parameters

location
Int32[]

An array of 2 ints containing the left and top coordinates of the child to invalidate

dirty
Rect

The area within the child that is invalid

Returns

Implements

Attributes

Remarks

Don't call or override this method. It is used for the implementation of the view hierarchy.

This implementation returns null if this ViewGroup does not have a parent, if this ViewGroup is already fully invalidated or if the dirty rectangle does not intersect with this ViewGroup's bounds.

This member is deprecated. Use #onDescendantInvalidated(View, View) instead to observe updates to draw state in descendants.

Java documentation for android.view.ViewGroup.invalidateChildInParent(int[], android.graphics.Rect).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to