I know that there is an android:textIsSelectable="true" attribute android:textIsSelectable="true" , which allows you to select text in a TextView long click on the text, and after that it shows an ActionMode for manipulating the text. My question is: how to disable the standard ActionMode ? I tried to disable it by writing a special ActionMode and returning the onCreateActionMode method false in it:
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { return false; }
and handed it over:
TextView.setCustomSelectionActionModeCallback(customActionMode);
Corrupted text and disabled Start-End pointers. I want to disable ActionMode in order to write my own PopupWindow after selecting the text. Do you have any suggestions?
source share