首先在res\values下的styles.xml中加入如下自定義主題樣式代碼
java
<style name="AppTheme" parent="android:Theme.Light"> <item name="android:windowNoTitle">true</item> <!-- Customize your theme here. --> </style>
而後在清單文件manifest.xml中加入如下代碼,將主題樣式引用過去android
<application ...... android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" >