简单的popwindow弹框
popupWindow.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
listPresenter.FirstList(new HashMap<String, String>());
PopupWindow pop = new PopupWindow();
View view = LayoutInflater.from(getActivity()).inflate(R.layout.popwindow,null);
pop.setContentView(view);
/* pop.setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
pop.setWidth(ViewGroup.LayoutParams.WRAP_CONTENT);*/
pop.setWidth(ViewGroup.LayoutParams.WRAP_CONTENT);
pop.setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
pop.setBackgroundDrawable(new ColorDrawable(Color.GRAY));
pop.setOutsideTouchable(true);
pop.showAtLocation(popupWindow,50,50,50);
}
});