根据Android开发者网站我认为您不能(据我所知)永久隐藏导航栏。但是,您可以做一招。这是一个技巧。只是当navigation bar用户触摸屏幕时出现。立即将其再次隐藏。很有趣。检查一下。void setNavVisibility(boolean visible) {int newVis = SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | SYSTEM_UI_FLAG_LAYOUT_STABLE;if (!visible) { newVis |= SYSTEM_UI_FLAG_LOW_PROFILE | SYSTEM_UI_FLAG_FULLSCREEN | SYSTEM_UI_FLAG_HIDE_NAVIGATION;}// If we are now visible, schedule a timer for us to go invisible.if (visible) { Handler h = getHandler(); if (h != null) { h.removeCallbacks(mNavHider); if (!mMenusOpen && !mPaused) { // If the menus are open or play is paused, we will not auto-hide. h.postDelayed(mNavHider, 1500); } }}// Set the new desired visibility.setSystemUiVisibility(newVis);mTitleView.setVisibility(visible ? VISIBLE : INVISIBLE);mPlayButton.setVisibility(visible ? VISIBLE : INVISIBLE);mSeekView.setVisibility(visible ? VISIBLE : INVISIBLE);}