如何隐藏状态栏? [英] How to hide status bar?
本文介绍了如何隐藏状态栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何隐藏特定活动的状态栏?
How can I hide the status bar for a specific activity?
我发现了类似的问题,但没有一个答案对我有用。每当我尝试参加该活动时,该应用程序便崩溃了:
如何在Android中隐藏状态栏
I found this similar question, but none of the answers worked for me. The app just crashed every time I tried to go to the activity: How to hide status bar in Android
谢谢。
推荐答案
在设置内容之前先在您的活动中尝试
Try this in you activity before setting your content
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
这篇关于如何隐藏状态栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文