Hide status bar on android

怎甘沉沦 提交于 2019-12-11 11:59:29

问题


I am trying to hide the status bar. I have tried the following things. This is for phones. I realize tablets can be different. It does hide the status bar when the layout has a bottom Tab. any ideas?

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

In the Manifest.XML I have added the above code.

And in the onCreate() I have added the followingin the right place:

requestWindowFeature(Window.FEATURE_NO_TITLE);
// hide statusbar of Android
// could also be done later
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);

来源:https://stackoverflow.com/questions/16860118/hide-status-bar-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!