Compartir a través de


View.VerifyDrawable(Drawable) Method

Definition

If your view subclass is displaying its own Drawable objects, it should override this function and return true for any Drawable it is displaying.

[Android.Runtime.Register("verifyDrawable", "(Landroid/graphics/drawable/Drawable;)Z", "GetVerifyDrawable_Landroid_graphics_drawable_Drawable_Handler")]
protected virtual bool VerifyDrawable (Android.Graphics.Drawables.Drawable who);
[<Android.Runtime.Register("verifyDrawable", "(Landroid/graphics/drawable/Drawable;)Z", "GetVerifyDrawable_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member VerifyDrawable : Android.Graphics.Drawables.Drawable -> bool
override this.VerifyDrawable : Android.Graphics.Drawables.Drawable -> bool

Parameters

who
Drawable

The Drawable to verify. Return true if it is one you are displaying, else return the result of calling through to the super class.

Returns

boolean If true then the Drawable is being displayed in the view; else false and it is not allowed to animate.

Attributes

Remarks

If your view subclass is displaying its own Drawable objects, it should override this function and return true for any Drawable it is displaying. This allows animations for those drawables to be scheduled.

Be sure to call through to the super class when overriding this function.

Java documentation for android.view.View.verifyDrawable(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

See also