Langue

GradientDrawable.SetAlpha(Int32) Method

Definition

Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.

[Android.Runtime.Register("setAlpha", "(I)V", "GetSetAlpha_IHandler")]
public override void SetAlpha(int alpha);
[<Android.Runtime.Register("setAlpha", "(I)V", "GetSetAlpha_IHandler")>]
override this.SetAlpha : int -> unit

Parameters

alpha
Int32

Value is between 0 and 255 inclusive

Attributes

Remarks

Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.

Android reference for android.graphics.drawable.GradientDrawable.setAlpha.

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