Completely Disable/Hide Status Bar on 4.4.2

孤者浪人 提交于 2019-12-10 16:26:37

问题


We are developing a launcher app for elderly people which has a very easy UI and we do not want to show status bar or notification drawer.

Now i tried to disable Status Bar but it seems to re-appear when i pull down from the upper side of the screen. And if i pull-down for the second time notification drawer is opened. Is there a way to completely disable Status Bar?

I checked the documentation on the following links but i think no solution is present. In API level 16 we were able to disable it completely but not in api level 19. https://developer.android.com/training/system-ui/status.html#41

https://developer.android.com/training/system-ui/immersive.html#nonsticky


回答1:


Try this. It hides status bar, bar with home, return buttons. I use it and it works for me on 4.4.2 AllWinner V11 tablet

Needs ROOT

Use this at your own risk

  • After rooting install SuperSU and file manager app like ES file explorer.
  • Grant access for ES explorer
  • In ES settings check Root explorer then Mount RW
  • In /system find build prop.build file
  • At the end add qemu.hw.mainkeys = 1
  • Save and exit, reboot.

This will hide the bottom bar with Return, Home, and Recent apps. No swipes or other interupts it. To show it again delete qemu.hw.mainkeys = 1 or make it 0




回答2:


In android 4.4+ you can not hide status bar really, instead you can prevent the on click expansion of status bar.

To hide the status bar or prevent the expansion of status bar in android 4.4+, please check the solution on below link (as solution is pretty big I am giving the link only ... :) )

Prevent Expansion of status bar in android 4.4+ or android kitkat




回答3:


You can draw some view above status bar and consume all input events. It prevent the status from expanding.

More details here: Permanently hide Android Status Bar

It worked for me.



来源:https://stackoverflow.com/questions/23054530/completely-disable-hide-status-bar-on-4-4-2

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