android PopupWindow
1 PopupWindow window = new PopupWindow(activity);//的到对象 2 window.setBackgroundDrawable(activity.getResources().getDrawable(R.drawable.configlistviewbg));//设置背景 //设置PopupWindow显示和隐藏时的动画 window.setAnimationStyle(R.style.AnimationFade); View view=LayoutInflater.from(activity).inflate(joker.housemananger.activity.R.layout.addhouseactivity_popuwindow, null,true);//将popu的布局文件实例出 long wid=activity.getWindowManager().getDefaultDisplay().getWidth(); //的到屏幕的宽 long hd=activity.getWindowManager().getDefaultDisplay().getHeight();//得到屏幕的高 View call=view.findViewById(R.id.addhouse_popuwindow_bt_callphone);/