Sdílet prostřednictvím


Window.SetElevation(Single) Method

Definition

Sets the window elevation.

[Android.Runtime.Register("setElevation", "(F)V", "GetSetElevation_FHandler", ApiSince=22)]
public virtual void SetElevation (float elevation);
[<Android.Runtime.Register("setElevation", "(F)V", "GetSetElevation_FHandler", ApiSince=22)>]
abstract member SetElevation : single -> unit
override this.SetElevation : single -> unit

Parameters

elevation
Single

The window elevation.

Attributes

Remarks

Sets the window elevation.

Changes to this property take effect immediately and will cause the window surface to be recreated. This is an expensive operation and as a result, this property should not be animated.

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