public class ActionModeHelper
extends java.lang.Object
| Constructor and Description |
|---|
ActionModeHelper(FastAdapter fastAdapter,
int cabMenu) |
ActionModeHelper(FastAdapter fastAdapter,
int cabMenu,
android.support.v7.view.ActionMode.Callback callback) |
| Modifier and Type | Method and Description |
|---|---|
android.support.v7.view.ActionMode |
getActionMode() |
java.lang.Boolean |
onClick(IItem item,
int position)
implements the basic behavior of a CAB and multi select behavior,
including logics if the clicked item is collapsible
|
android.support.v7.view.ActionMode |
onLongClick(android.support.v7.app.AppCompatActivity act,
int position)
implements the basic behavior of a CAB and multi select behavior onLongClick
|
public ActionModeHelper(FastAdapter fastAdapter, int cabMenu)
public ActionModeHelper(FastAdapter fastAdapter, int cabMenu, android.support.v7.view.ActionMode.Callback callback)
public android.support.v7.view.ActionMode getActionMode()
public java.lang.Boolean onClick(IItem item, int position)
item - the current itemposition - the global position of the current itempublic android.support.v7.view.ActionMode onLongClick(android.support.v7.app.AppCompatActivity act,
int position)
act - the current Activityposition - the position of the clicked item