Udostępnij za pośrednictwem


ColorDrawable.Alpha Property

Definition

Returns the alpha value of this drawable's color.

public override int Alpha { [Android.Runtime.Register("getAlpha", "()I", "GetGetAlphaHandler")] get; set; }
[<get: Android.Runtime.Register("getAlpha", "()I", "GetGetAlphaHandler")>]
member this.Alpha : int with get, set

Property Value

A value between 0 and 255.

Attributes

Remarks

Returns the alpha value of this drawable's color. Note this may not be the same alpha value provided in Drawable#setAlpha(int). Instead this will return the alpha of the color combined with the alpha provided by setAlpha

Java documentation for android.graphics.drawable.ColorDrawable.getAlpha().

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