我正在尝试测试PopupWindow类。我创建了这个方法来显示弹出窗口:publicvoidshowPopup(){LayoutInflaterlayoutInflater=(LayoutInflater)getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);ViewpopupView=layoutInflater.inflate(R.layout.popup,null);finalPopupWindowpopup=newPopupWindow(popupView,LayoutParams.WRAP_CONTENT,Lay