Android.Views.View.Alpha Property
The opacity of the view.

Syntax

[get: Android.Runtime.Register("getAlpha", "()F", "GetGetAlphaHandler")]
[set: Android.Runtime.Register("setAlpha", "(F)V", "GetSetAlpha_FHandler")]
public virtual float Alpha { get; set; }

See Also

View.HasOverlappingRendering
View.SetLayerType(LayerType, Android.Graphics.Paint)

Value

Documentation for this section has not yet been entered.

Remarks

Get method documentation [Android Documentation]

The opacity of the view. This is a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque. By default this is 1.0f.

Set method documentation [Android Documentation]

Sets the opacity of the view. This is a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque.

Note that setting alpha to a translucent value (0

For a view with a frequently changing alpha, such as during a fading animation, it is strongly recommended for performance reasons to either override View.HasOverlappingRendering to return false if appropriate, or setting a View.SetLayerType(LayerType, Android.Graphics.Paint) on the view.

If this view overrides View.OnSetAlpha(int) to return true, then this view is responsible for applying the opacity itself.

Note that if the view is backed by a View.SetLayerType(LayerType, Android.Graphics.Paint) and is associated with a View.SetLayerPaint(Android.Graphics.Paint), setting an alpha value less than 1.0 will supercede the alpha of the layer paint.

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11