Example usage for android.support.v4.view Window FEATURE_ACTION_MODE_OVERLAY

List of usage examples for android.support.v4.view Window FEATURE_ACTION_MODE_OVERLAY

Introduction

In this page you can find the example usage for android.support.v4.view Window FEATURE_ACTION_MODE_OVERLAY.

Prototype

long FEATURE_ACTION_MODE_OVERLAY

To view the source code for android.support.v4.view Window FEATURE_ACTION_MODE_OVERLAY.

Click Source Link

Document

Flag for specifying the behavior of action modes when an Action Bar is not present.

Usage

From source file:com.actionbarsherlock.internal.app.ActionBarHandlerWatson.java

@Override
protected boolean requestWindowFeature(int featureId) {
    if (featureId == Window.FEATURE_ACTION_BAR_OVERLAY) {
        // TODO Make action bar partially transparent
        return true;
    }//from   ww  w .  j ava 2 s  . c  o  m
    if (featureId == Window.FEATURE_ACTION_MODE_OVERLAY) {
        // TODO Make action modes partially transparent
        return true;
    }
    if (featureId == Window.FEATURE_ENABLE_ACTION_BAR_WATSON_TEXT) {
        mIsActionItemTextEnabled = true;
        return true;
    }
    return false;
}