只去程序标题栏 设置整个应用 no title
第三种:这种在一般的应用中不常用,就是在res/values目录下面新建一个style.xml的文件例如:
<?xml version="1.0" encoding="UTF-8" ?> <resources> <style name="theme_notitle"> <item name="android:windowNoTitle">true</item> </style> </resources>
这样,我们就自定义了一个style,就相当于一个主题,然后在AndroidManifest.xml文件中定义
<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/theme_notitle">
这样也可以达到去掉标题栏的效果
以上给大家总结了三种android去掉状态栏的方法,希望本文所述能够帮助到大家。
注:相关教程知识阅读请移步到Android开发频道。










