WindowManager.LayoutParams params = getWindow().getAttributes(); params.systemUiVisibility =View.SYSTEM_UI_FLAG_HIDE_NAVIGATION; getWindow().setAttributes(params);