WindowManager.LayoutParams params = getWindow().getAttributes();
params.systemUiVisibility =View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
getWindow().setAttributes(params);
WindowManager.LayoutParams params = getWindow().getAttributes();
params.systemUiVisibility =View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
getWindow().setAttributes(params);
转载于:https://www.cnblogs.com/xiaoyao095/p/5476554.html