写了一个Toolbar类继承了PopupWindow,想在这个Toolbar弹出的时候,能捕获到Toolbar窗口以外的点击事件,并把点击事件交给Toolbar窗口外被点击的控件处理,但试了一些办法,总是无法识别点击事件是在窗口内还是窗口外,请问大家有没有遇到过类似的问题 this.setOutsideTouchable(true);
this.setFocusable(true);
this.setTouchable(true);这些方法都调用过,还是没用希望大家不吝赐教啊
this.setFocusable(true);
this.setTouchable(true);这些方法都调用过,还是没用希望大家不吝赐教啊
public boolean onTouchEvent (MotionEvent event)