Ton*_*ton 5 android android-splashscreen
使用 Splash Screen API 时是否可以在启动屏幕中的徽标中添加文本?我在 Theme.SplashScreen 中没有找到任何有关“文本”的属性。
    <style name="Theme.App.Starting" parent="Theme.SplashScreen">
        <item name="windowSplashScreenBackground">@color/black_accent</item>
        <item name="windowSplashScreenAnimatedIcon">@drawable/circle_orange</item>
        <item name="windowSplashScreenAnimationDuration">200</item>
        <!-- Set the theme of the Activity that directly follows your splash screen. -->
        <!-- Required -->
        <item name="postSplashScreenTheme">@style/Theme.MyApplication</item>
    </style>
目前还没有这样的属性,但您可以通过将文本转换为可绘制属性,然后将徽标+文本可绘制属性放入其中来添加您的属性
<item name="windowSplashScreenAnimatedIcon">@drawable/circle_orange</item>,这不是正确的解决方案,但您可以考虑将其作为一种选择。
| 归档时间: | 
 | 
| 查看次数: | 1036 次 | 
| 最近记录: |