//自定义布局 View popContent = View.inflate(this,R.layout.pop_layout,null);//显示popupWindow = new PopupWindow(popContent, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);popupWindow.showAtLocation(biao, Gravity.BOTTOM,0,0);//取消popupWindow.dismiss();