i want to provide custom handlers that cut,copy text.

Target on Longclick

1. Context Menu Should not appear.
2. Text could get selected with trackers ( or Draggers ).

[![enter image description here](https://i.stack.imgur.com/P3yAN.jpg)](https://i.stack.imgur.com/P3yAN.jpg)

**[UPDATE]**

```
 protected void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    edittext = (EditText) findViewById(R.id.notetext);
    . . . .

    edittext.setCustomSelectionActionModeCallback(new ActionMode.Callback()
    {
        public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
            return false;
        }

        public void onDestroyActionMode(ActionMode mode) {
        }

        public boolean onCreateActionMode(ActionMode mode, Menu menu)
        {
            return true;
        }

        public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
            return false;
        }
    });

  . . . .

}

@Override
public void onSupportActionModeStarted(android.support.v7.view.ActionMode mode) {
    super.onSupportActionModeStarted(mode);
    View v = new View(MainActivity.this);
    mode.setCustomView(v);
    mode.getMenu().clear();
    mode.getMenu().close();
    mode.finish();
}

```

Using above piece of code i am able to remove Select All, Cut, Copy and Paste.But Still it shows "Text Selection"

Below Image shows what is required.

![enter image description here](https://i.stack.imgur.com/C7MOI.jpg)