自定义style
<style name="AppSplash" parent="AppTheme">
<item name="android:windowBackground">@mipmap/doutu</item>
</style>
然后在AndroidManifest.xml中配置如下:s
<activity android:name=".SplashActivity" android:theme="@style/AppSplash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
本文介绍如何通过自定义样式设置应用程序的启动屏幕背景。通过创建名为AppSplash的样式并将其应用于AndroidManifest.xml文件中的SplashActivity,可以实现启动时显示特定图片。
532

被折叠的 条评论
为什么被折叠?



