Partager via


View.IsOpaque Property

Definition

Indicates whether this View is opaque.

public virtual bool IsOpaque { [Android.Runtime.Register("isOpaque", "()Z", "GetIsOpaqueHandler")] get; }
[<get: Android.Runtime.Register("isOpaque", "()Z", "GetIsOpaqueHandler")>]
member this.IsOpaque : bool

Property Value

True if this View is guaranteed to be fully opaque, false otherwise.

Attributes

Remarks

Indicates whether this View is opaque. An opaque View guarantees that it will draw all the pixels overlapping its bounds using a fully opaque color.

Subclasses of View should override this method whenever possible to indicate whether an instance is opaque. Opaque Views are treated in a special way by the View hierarchy, possibly allowing it to perform optimizations during invalidate/draw passes.

Java documentation for android.view.View.isOpaque().

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