Sdílet prostřednictvím


Drawable.ICallback.InvalidateDrawable(Drawable) Method

Definition

Called when the drawable needs to be redrawn.

[Android.Runtime.Register("invalidateDrawable", "(Landroid/graphics/drawable/Drawable;)V", "GetInvalidateDrawable_Landroid_graphics_drawable_Drawable_Handler:Android.Graphics.Drawables.Drawable/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void InvalidateDrawable (Android.Graphics.Drawables.Drawable who);
[<Android.Runtime.Register("invalidateDrawable", "(Landroid/graphics/drawable/Drawable;)V", "GetInvalidateDrawable_Landroid_graphics_drawable_Drawable_Handler:Android.Graphics.Drawables.Drawable/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member InvalidateDrawable : Android.Graphics.Drawables.Drawable -> unit

Parameters

who
Drawable

The drawable that is requesting the update.

Attributes

Remarks

Called when the drawable needs to be redrawn. A view at this point should invalidate itself (or at least the part of itself where the drawable appears).

Java documentation for android.graphics.drawable.Drawable.Callback.invalidateDrawable(android.graphics.drawable.Drawable).

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