Udostępnij za pośrednictwem


Window.SetFeatureDrawableAlpha(WindowFeatures, Int32) Method

Definition

Set a custom alpha value for the given drawable feature, controlling how much the background is visible through it.

[Android.Runtime.Register("setFeatureDrawableAlpha", "(II)V", "GetSetFeatureDrawableAlpha_IIHandler")]
public abstract void SetFeatureDrawableAlpha (Android.Views.WindowFeatures featureId, int alpha);
[<Android.Runtime.Register("setFeatureDrawableAlpha", "(II)V", "GetSetFeatureDrawableAlpha_IIHandler")>]
abstract member SetFeatureDrawableAlpha : Android.Views.WindowFeatures * int -> unit

Parameters

featureId
WindowFeatures

The desired drawable feature to change. Features are constants defined by Window.

alpha
Int32

The alpha amount, 0 is completely transparent and 255 is completely opaque.

Attributes

Remarks

Set a custom alpha value for the given drawable feature, controlling how much the background is visible through it.

Java documentation for android.view.Window.setFeatureDrawableAlpha(int, int).

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