WindowManager.LayoutParams wmlp;
wmlp = new WindowManager.LayoutParams();
wmlp.width = WindowManager.LayoutParams.MATCH_PARENT;
wmlp.height = WindowManager.LayoutParams.MATCH_PARENT;
wmlp.alpha = 1.0f;
wmlp.flags = WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
| WindowManager.LayoutParams.TYPE_STATUS_BAR
|WindowManager.LayoutParams.FLAG_SPLIT_TOUCH;
wmlp.flags &= ~(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON
| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
);
wmlp.type = WindowManager.LayoutParams.TYPE_SYSTEM_ERROR;
wmlp.format = -1;
wmlp.token = null;
wmlp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE
| WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN | WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE;
我将这些参数应用于布局。我希望背景活动不应该是可触摸的。它工作正常。但由于这个问题导致导航栏也不可触及。我想让它启用。我能做什么?