我想为全屏创建一个popupwindow
我使用了以下内容:
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);
Run Code Online (Sandbox Code Playgroud)
这涵盖了操作栏,但不是全屏..
Api 11+也支持LayuotParams.WRAP_CONTENT.我需要解决方案从api级别8开始工作.