我想为全屏创建一个弹出窗口
我使用了以下内容:
LayoutInflater inflater = (LayoutInflater) MainActivity.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
layoutt = inflater.inflate(R.layout.loginto,(ViewGroup) findViewById(R.id.window1));
pwindow = new PopupWindow(layoutt,LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,true);
这涵盖了操作栏但不包括全屏..
api 11+ 也支持 LayuotParams.WRAP_CONTENT 。我需要从 api 8 级开始工作的解决方案。