How to disable EditText box in Android when using LongClick Listener

Posted by user1443051 on Stack Overflow See other posts from Stack Overflow or by user1443051
Published on 2012-09-23T03:27:20Z Indexed on 2012/09/23 3:37 UTC
Read the original article Hit count: 146

Filed under:
|

I have EditText box which has focusable and focusableontouch enabled and all the rest are disabled in XML. The problem I am facing is that on longclick on this text box the selectAll and select pop up comes up - I would like to disable it and at the same time use the OnlongClick Funtion too..

So I tried android:longClickable="false" on XML and set the text box using LongClick listener in java

Something like this: edEmailId.setOnLongClickListener(myOnLongClickListener);

Didn't work I am still getting selectALL popup window. Is LongClickable in XML and SetOnlongClicklistener the same?

If so how do I disable the popup?

Awaiting your response! Thanks!

© Stack Overflow or respective owner

Related posts about android

Related posts about edittext