<How to restrict Cut, Copy, Select &amp; Paste opt...
# stackoverflow
u
How to restrict Cut, Copy, Select &amp; Paste option in Android when double tap or long click the edit text view? I have checked several ways and the below is one of them that I checked. I also checked with android:longClickable="false" and android:textIsSelectable="false" in xml file. It needs to work in all the OS versions. val callback: ActionMode.Callback = object : Callback, ActionMode.Callback { override fun onCreateActionMode(mode: ActionMode?, menu: Menu?): Boolean { menu?.apply { removeItem(android.R.id.copy)...