我使用新的启动画面 api 为所有 android 版本添加一个均匀的启动画面到 API 级别 23。对启动图标有什么要求吗?目前我尝试使用 svg,我认为它会在不同的屏幕上自动调整大小。是否有人也经历过这种情况并有解决方法或知道那些(隐藏的?)要求?
我使用最新的启动画面 api 版本(1.0.0-alpha02),这是我的主题:
<style name="SplashTheme" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/colorPrimary</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_disney_wordmark</item>
<item name="postSplashScreenTheme">@style/AppTheme</item>
<item name="windowSplashScreenAnimationDuration">1000</item>
</style>
这是以 ic_disney_wordmark 为例的输出,它是一个 svg:
谢谢你的帮助!