Condividi tramite


Shape.HasAlpha Property

Definition

Checks whether the Shape is opaque.

public virtual bool HasAlpha { [Android.Runtime.Register("hasAlpha", "()Z", "GetHasAlphaHandler")] get; }
[<get: Android.Runtime.Register("hasAlpha", "()Z", "GetHasAlphaHandler")>]
member this.HasAlpha : bool

Property Value

true if any part of the drawable is <em>not</em> opaque.

Attributes

Remarks

Checks whether the Shape is opaque.

Default impl returns true. Override if your subclass can be opaque.

Java documentation for android.graphics.drawable.shapes.Shape.hasAlpha().

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