【发布时间】:2016-09-29 14:55:44
【问题描述】:
这是我的代码,我将 outsidetouch listener 设置为 false,它适用于 6.0 以下版本的手机,但不适用于 6.0。
LayoutInflater layoutInflater
= (LayoutInflater) getBaseContext()
.getSystemService(LAYOUT_INFLATER_SERVICE);
popupView6 = layoutInflater.inflate(R.layout.payment_not_enough_points, null);
popupWindow2 = new PopupWindow(popupView6, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, true);
popupWindow2.showAtLocation(popupView6, Gravity.CENTER, 0, 0);
popupWindow2.setOutsideTouchable(false);
【问题讨论】: