1、在style裡面添加一個style:
<style name="contentoverlay"parent="@android:style/theme.light">
<itemname="android:windownotitle">true</item>
<itemname="android:windowistranslucent">true</item>
<itemname="android:windowcontentoverlay">@null</item>
</style>
2、将主題設定到啟動activity的主題裡面
<application
android:icon="@drawable/icon"
android:label="@string/app_name"
android:name=".tweiboapplication"
android:debuggable="true"
android:theme="@style/contentoverlay">
<activity
android:name=".mainsplashactivity"
android:configchanges="keyboardhidden|orientation"
<intent-filter>
<actionandroid:name="android.intent.action.main"/>
<categoryandroid:name="android.intent.category.launcher"/>
</intent-filter>
</activity>