Skip to content

Instantly share code, notes, and snippets.

@foxanna
Last active October 10, 2018 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxanna/54248158cea2da16e0e03e93d4fc53d4 to your computer and use it in GitHub Desktop.
Save foxanna/54248158cea2da16e0e03e93d4fc53d4 to your computer and use it in GitHub Desktop.
using Android.Views;
...
public class CustomSelectionActionModeCallback : Java.Lang.Object, ActionMode.ICallback
{
public bool OnActionItemClicked(ActionMode m, IMenuItem i) => false;
public bool OnCreateActionMode(ActionMode mode, IMenu menu) => false;
public bool OnPrepareActionMode(ActionMode mode, IMenu menu) => true;
public void OnDestroyActionMode(ActionMode mode) { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment