[英]Android how to hide status bar without ActionBar
is it possible to hide status bar:是否可以隐藏状态栏:
And show action bar without it?并在没有它的情况下显示操作栏?
try this..尝试这个..
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
Another way .In your manifest xml
, at application level set this:另一种方式。在您的清单
xml
,在应用程序级别设置:
<activity
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
I hope it will works我希望它会起作用
requestWindowFeature(Window.FEATURE_ACTION_BAR);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
you can use this to activity that you want to hide. 您可以将其用于要隐藏的活动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.