WindowManager addView不上去的问题?

来源:互联网 发布:psv 淘宝哪家店好 编辑:程序博客网 时间:2024/04/30 22:53

WindowManager windowManager = (WindowManager) getSystemService(TestMainActivity.this.getApplicationContext().WINDOW_SERVICE);

LayoutParams lps = new LayoutParams();

//透明层
 lps.format = PixelFormat.TRANSPARENT;//不加这句可能会addView不上去

0 0