Språk

DrawableWrapper.SetAlpha(Int32) Method

Definition

Passes an alpha value to the wrapped drawable, if one is set.

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

Parameters

alpha
Int32

Value is between 0 and 255 inclusive

Attributes

Remarks

The effect depends on the wrapped drawable's implementation.

Android reference for android.graphics.drawable.DrawableWrapper.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