一次修改即可不用在設置每個activity
先查看一下你清單文件application用的哪個theme。
<application
android:name="com.cecpay.qpos.config.BaseApplication"
android:allowBackup="true"
android:icon="@drawable/log"
android:theme="@style/AppTheme" >
然後按住ctrl點擊進入這個them。也可以自己找在values裏的style裏面。然後找到這個them。在這個them下面設置
<item name="android:windowNoTitle">true</item>
我的用的是AppTheme 修改後
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:windowNoTitle">true</item>
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
這樣就可以了。