if(event.getAction()==MotionEvent.ACTION_UP){
报错的代码是这段,提示 无法解析 ACTION_UP,或者它不是字段。
找了半天终于找到问题所在了。。。
这是我代码的开头:
public class SelectAddPopupWindow<MotionEvent> extends PopupWindow{
private View mMenuView;
改成这样后就没报错了:
public class SelectAddPopupWindow extends PopupWindow{
private View mMenuView;