第一步:自定义style
<style name="AppTheme.LauncherTheme">
<item name="android:windowBackground">@drawable/launch_layout</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
第二步:编写launcher_layout
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/indexbg"></item>
<item
android:width="106dp"
android:height="106dp"
android:gravity="center_horizontal"
android:top="203dp">
<bitmap android:src="@drawable/logo" />
</item>
</layer-list>
第三步:设置APP欢迎页(第一页)的主题
android:theme="@style/AppTheme.LauncherTheme"
第四步:APP欢迎页(第一页)的onCreate()super前添加代码如下
setTheme(R.style.AppTheme);