How to disable edittext pop up when EditText is Lo

2019-02-15 15:27发布

Hello All I have used onLongClickListener() to my EditText view but whenever I click on view for long time so a popup appears that doesn't let me do my task in onLongClick(View v). The pop up contains some options like Select All,Select Text,Cut All ,Copy All etc. I want to disable that (that should not appear on clicking long on EditText view). How can I do that please Help Me

2条回答
来,给爷笑一个
2楼-- · 2019-02-15 15:48

I also got that popup when I overrode onTouchEvent() and returned false. Suppress it by returning true.

查看更多
Anthone
3楼-- · 2019-02-15 16:06

you can return true in your onLongClick listener onLongClick method? that means that you have consumed the event and it wont be passed further along.

查看更多
登录 后发表回答