很多时候不显示
一,加背景
ColorDrawable dw = new ColorDrawable(Color.TRANSPARENT);
popupWindow1.setBackgroundDrawable(dw);
二,设定宽高未必有效。LayoutParams.WRAP_CONTENT,这些东西有效,或者match_parent
popupWindow1=new PopupWindow(list1, LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT, true);