Example usage for android.app ActionBar setElevation

List of usage examples for android.app ActionBar setElevation

Introduction

In this page you can find the example usage for android.app ActionBar setElevation.

Prototype

public void setElevation(float elevation) 

Source Link

Document

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

Usage

From source file:be.blinkt.openvpn.activities.MainActivity.java

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void disableToolbarElevation() {
    ActionBar toolbar = getActionBar();
    toolbar.setElevation(0);
}