Android Guides | Samples

Android.Graphics.Drawables.Drawable.Alpha Property

Gets the current alpha value for the drawable. 0 means fully transparent, 255 means fully opaque.

Syntax

[get: Android.Runtime.Register("getAlpha", "()I", "GetGetAlphaHandler")]
public virtual Int32 Alpha { get; set; }

Remarks

Gets the current alpha value for the drawable. 0 means fully transparent, 255 means fully opaque. This method is implemented by Drawable subclasses and the value returned is specific to how that class treats alpha. The default return value is 255 if the class does not override this method to return a value specific to its use of alpha.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1