共用方式為


ViewStructure.SetAlpha(Single) Method

Definition

Set an alpha transformation that is applied to this view, as per View#getAlpha View.getAlpha().

[Android.Runtime.Register("setAlpha", "(F)V", "GetSetAlpha_FHandler", ApiSince=23)]
public abstract void SetAlpha (float alpha);
[<Android.Runtime.Register("setAlpha", "(F)V", "GetSetAlpha_FHandler", ApiSince=23)>]
abstract member SetAlpha : single -> unit

Parameters

alpha
Single
Attributes

Remarks

Set an alpha transformation that is applied to this view, as per View#getAlpha View.getAlpha(). Value ranges from 0 (completely transparent) to 1 (completely opaque); the default is 1, which means no transformation.

Java documentation for android.view.ViewStructure.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