防止触摸屏幕时出现android状态栏
我已将主题设置为 @android:style/Theme.NoTitleBar.Fullscreen,但我试图防止触摸屏幕时出现状态栏。有什么想法吗?
I've set my theme to @android:style/Theme.NoTitleBar.Fullscreen, but I'm trying to prevent the status bar from appearing when touching the screen. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试放入
你的 onCreate. (您可能需要在执行 setContentView 之前设置此项。)
您还需要
在您的清单文件中。(预计到达时间:请参阅下面的评论)Try putting
in your onCreate. (You may need to set this before doing setContentView.)
You'll needin your manifest file too.(ETA: see comment below)