Window.SetDimAmount(Single) Method

Definition

Set the amount of dim behind the window when using WindowManager.LayoutParams#FLAG_DIM_BEHIND.

[Android.Runtime.Register("setDimAmount", "(F)V", "GetSetDimAmount_FHandler")]
public virtual void SetDimAmount (float amount);
[<Android.Runtime.Register("setDimAmount", "(F)V", "GetSetDimAmount_FHandler")>]
abstract member SetDimAmount : single -> unit
override this.SetDimAmount : single -> unit

Parameters

amount
Single

The new dim amount, from 0 for no dim to 1 for full dim.

Attributes

Remarks

Set the amount of dim behind the window when using WindowManager.LayoutParams#FLAG_DIM_BEHIND. This overrides the default dim amount of that is selected by the Window based on its theme.

Java documentation for android.view.Window.setDimAmount(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