Androidの下位バージョンのようにAndroid 5.0またはそれ以降で非表示にするテーマベースの方法はありますか? 私はちょうどあなたがこのソリューションを試しました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();
これは私が欲しいものではない、私はテーマを使用して他の方法をしたいと言った –
これは私がandroid.devlopers.comで検索した唯一の方法なので、それ以外の方法はないと思うテーマXML –