1
我吹佈局TYPE_SYSTEM_ALERT
和FLAG_LAYOUT_IN_SCREEN
如何關閉充氣佈局?
params = new WindowManager.LayoutParams(
WindowManager.LayoutParams.FILL_PARENT,
WindowManager.LayoutParams.FILL_PARENT,
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT ,
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
Color.YELLOW);
wm = (WindowManager) getApplicationContext()
.getSystemService(Context.WINDOW_SERVICE);
mTopView = (ViewGroup) getLayoutInflater().inflate(R.layout.lock_screen, null);
getWindow().setAttributes(params);
wm.addView(mTopView, params);
如何關閉或關閉呢?