方法一
1.自定义主题
<style name="WelcomTheme" parent="AppTheme">
<item name="android:windowBackground">@drawable/bg</item>
<item name="android:windowNoTitle">true</item>
</style>
2.启动页引用
<activity
android:theme="@style/WelcomTheme"android:name=".WelcomActivity" >
</activity>
方法二
给启动页activity设置theme为:@android:style/Theme.Translucent.NoTitleBar";
这个主题有一个android:windowContentOverlay属性:是否覆盖