Example usage for android.view ActionMode TYPE_FLOATING

List of usage examples for android.view ActionMode TYPE_FLOATING

Introduction

In this page you can find the example usage for android.view ActionMode TYPE_FLOATING.

Prototype

int TYPE_FLOATING

To view the source code for android.view ActionMode TYPE_FLOATING.

Click Source Link

Document

The action mode is treated as a Floating Toolbar.

Usage

From source file:org.cafemember.ui.LaunchActivity.java

@Override
public void onActionModeStarted(ActionMode mode) {
    super.onActionModeStarted(mode);
    if (Build.VERSION.SDK_INT >= 23 && mode.getType() == ActionMode.TYPE_FLOATING) {
        return;/*ww w  . ja v  a  2  s . c om*/
    }
    actionBarLayout.onActionModeStarted(mode);
    if (AndroidUtilities.isTablet()) {
        rightActionBarLayout.onActionModeStarted(mode);
        layersActionBarLayout.onActionModeStarted(mode);
    }
}

From source file:org.cafemember.ui.LaunchActivity.java

@Override
public void onActionModeFinished(ActionMode mode) {
    super.onActionModeFinished(mode);
    if (Build.VERSION.SDK_INT >= 23 && mode.getType() == ActionMode.TYPE_FLOATING) {
        return;//from w  w  w .  j  a  va 2 s.co  m
    }
    actionBarLayout.onActionModeFinished(mode);
    if (AndroidUtilities.isTablet()) {
        rightActionBarLayout.onActionModeFinished(mode);
        layersActionBarLayout.onActionModeFinished(mode);
    }
}