1

I have textview, from where user should be able only to copy text. So I have costumized android contextual bar and removed cut and paste options from there but during long click (when CAB is shown) little pop-up appears with paste option... How can I remove this pop-up? Keep in mind, I need this edit text to be isselectable=true; cause user should be ablw to copy from there enter image description here

I cann't copy code (privacy issues) so I print screened it enter image description here

This question is different from How to disable copy/paste from/to EditText. Because provided correct answer, suggests to implement callback class which returns false on everything, but my callback class is different. It has overriden functionality. Also provided answer saysReturning false from onCreateActionMode(ActionMode, Menu) will prevent the action mode from being started(Select All, Cut, Copy and Paste actions). This answer is different from my question, because i need user to be able to copy from textviw

Community
  • 1
  • 1
Giorgi Margiani
  • 292
  • 1
  • 6
  • 17

0 Answers0