How disable instant triggering onClik button afrer onTouch MotionEvent.ACTION_OUTSIDE. I have a popupwindow, when I click on the outside and on the background I have a button, edittext or checkbox, then the button is triggered, if this is edittext, then the focus moves to it, if checkbox then it becomes checked. How disable click after onTouch?
added video example

1 Answers

JiajiaGu On Best Solutions

Try this:

popupWindow.setBackgroundDrawable(new StateListDrawable())