去掉Activity上的所有标题栏,在styles.xml中进行设置主题样式,由于该样式在清单文件<application>节点中进行了配置,所以对整个项目中的Activity都能生效
<style name="AppTheme"parent="AppBaseTheme">
<!--All customizations that are NOT specific to a particular API-level can go here.-->
<item name="android:windowNoTitle">true</item>
</style>
该样式在清单文件里进行 配置使用即可生效
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
</application>