I know there is an attribute android:textIsSelectable="true" which enables text selection in a TextView by a long click on text and after that it shows an ActionMode for manipulating text.My question is how can I disable the default ActionMode? I tried to disable it by writing a custom ActionMode and returning false in it's onCreateActionMode method:
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
return false;
}
and passed it to the:
TextView.setCustomSelectionActionModeCallback(customActionMode);
It ruined text selection and disabled Start-End pointers.
I want to disable ActionMode to write my own PopupWindow after selecting text.
Do you have any suggestions?