Android: How to TOTALLY disable copy and paste function in Edittext
问题 I am quite new to Android developing area and recently I hv encountered a tough problem. I was trying to make a Edittext which should NOT ALLOW user to copy content from or paste content to it. I hv googled a lot and find there seems to be 2 popular ways of doing so: 1st way, to set it in the layout file: android:longClickable="false" 2nd way, to programmatically set it: myEdittext.setCustomSelectionActionModeCallback(new ActionMode.Callback() { public boolean onPrepareActionMode(ActionMode