Partager via


ViewStructure.SetElevation(Single) Method

Definition

Set the visual elevation (shadow) of the view, as per View#getZ View.getZ().

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

Parameters

elevation
Single
Attributes

Remarks

Set the visual elevation (shadow) of the view, as per View#getZ View.getZ(). Note this is <em>not</em> related to the physical Z-ordering of this view relative to its other siblings (that is how they overlap when drawing), it is only the visual representation for shadowing.

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