Possible to make setSystemUiVisibility() affect the entire system, rather than just your app?

这一生的挚爱 提交于 2019-12-05 15:26:23

As CommonsWare states, it's not possible for an application to change this setting. It's an Activity based setting, that must be set for every single Activity, if you want to make it fullscreen, hide the soft keys, etc.

It's also worth pointing out that you should probably refrain from using it in all your application activities. It's really only meant for games, video players and other applications that need to enter this "low profile" state.

Feel free to accept CommonsWare's answer - I just thought I'd give you a bit of background info on the subject.

is it possible for the app to make this setting system-wide rather than just while the app has focus?

No.

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