WindowManager windowManager = (WindowManager) getSystemService(TestMainActivity.this.getApplicationContext().WINDOW_SERVICE);
LayoutParams lps = new LayoutParams();
//透明层
lps.format = PixelFormat.TRANSPARENT;//不加这句可能会addView不上去
WindowManager windowManager = (WindowManager) getSystemService(TestMainActivity.this.getApplicationContext().WINDOW_SERVICE);
LayoutParams lps = new LayoutParams();
//透明层
lps.format = PixelFormat.TRANSPARENT;//不加这句可能会addView不上去