如何在Android Studio活动预览中删除状态栏 [英] How can I remove the status bar in Android Studio activity preview
问题描述
我发现Android Studio中的预览"视图超级有用,可以查看我的UI在设备上的显示方式.预览几乎与我的应用内布局匹配.
I find the "Preview" view in Android Studio super useful to see how my UI will appear on the device. The preview almost matches my in-app layout.
我们的应用程序具有全屏UI,甚至可以隐藏状态栏.这在设备上效果很好,但是预览坚持显示状态栏.我还无法弄清楚如何在编辑活动ui时将其删除.
Our app has a fullscreen UI, which even hides the status bar. This works great on the device, but the preview insists on displaying the status bar. I haven't been able to figure out how to remove it editing an activity ui.
为清楚起见,我不是在谈论应用程序标题栏或系统按钮(主页,后退等).
To be clear, I'm not talking about the App Titlebar, or the system buttons (home, back, etc).
推荐答案
将布局主题更改为NoTitleBar.FullScreen.
Change your layout theme to NoTitleBar.FullScreen.
这篇关于如何在Android Studio活动预览中删除状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!