다음을 통해 공유


RenderNode.SetAlpha(Single) Method

Definition

Sets the translucency level for the display list.

[Android.Runtime.Register("setAlpha", "(F)Z", "", ApiSince=29)]
public bool SetAlpha (float alpha);
[<Android.Runtime.Register("setAlpha", "(F)Z", "", ApiSince=29)>]
member this.SetAlpha : single -> bool

Parameters

alpha
Single

The translucency of the display list, must be a value between 0.0f and 1.0f

Returns

True if the value changed, false if the new value was the same as the previous value.

Attributes

Remarks

Sets the translucency level for the display list.

Java documentation for android.graphics.RenderNode.setAlpha(float).

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