ActionBar.Elevation Property

Definition

Get the Z-axis elevation of the action bar in pixels. -or- Set the Z-axis elevation of the action bar in pixels.

public virtual float Elevation { [Android.Runtime.Register("getElevation", "()F", "GetGetElevationHandler")] get; [Android.Runtime.Register("setElevation", "(F)V", "GetSetElevation_FHandler")] set; }
[<get: Android.Runtime.Register("getElevation", "()F", "GetGetElevationHandler")>]
[<set: Android.Runtime.Register("setElevation", "(F)V", "GetSetElevation_FHandler")>]
member this.Elevation : single with get, set

Property Value

Elevation value in pixels

Attributes

Remarks

Property getter documentation:

Get the Z-axis elevation of the action bar in pixels.

The action bar's elevation is the distance it is placed from its parent surface. Higher values are closer to the user.

Java documentation for android.app.ActionBar.getElevation().

Property setter documentation:

Set the Z-axis elevation of the action bar in pixels.

The action bar's elevation is the distance it is placed from its parent surface. Higher values are closer to the user.

Java documentation for android.app.ActionBar.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