android - how to prevent default keyboard from popping up and enable copy paste option? -


i have own custom keyboard in app . in edittext box disabled ontouch() returning true

ontouchlistener otl = new ontouchlistener() {             @override             public boolean ontouch(view v, motionevent event) {                 switch (event.getaction()) {                 }                 return true;             }         }; 

this helps in preventing keyboard popup.but disables touch event, , not getting option copy paste default feature of android .this scenario happening in many app not getting way it. please help.

instead of disabling touch, can setfocusable false. disable softkeyboard popping up.

edittext.setfocusable(false);     edittext.setfocusableintouchmode(false); 

and in ontouch, popup custom keyboard

hope helps.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -