我正在嘗試這段代碼,它顯示在谷歌開發人員的頁面中,但沒有任何頁面。Hiding ActionBar for Android> 4.1
View decorView = getWindow().getDecorView();
// Hide the status bar.
int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
// Remember that you should never show the action bar if the
// status bar is hidden, so hide that too if necessary.
ActionBar actionBar = getActionBar();
actionBar.hide();
我應該在清單文件上添加一些東西嗎?
謝謝。
不,但不是你會將'沒有行動酒吧主題'設置爲你的'活動'或'應用程序' – 2014-12-02 10:05:58