Android项目中styles.xml文件中的windowSplashscreenContent项是什么



<item name="android:windowSplashscreenContent">#What comes here ?#</item>

styles.xml中此项的有效值是什么?

这是否意味着要创建一个启动屏幕,你所要做的就是为这个项目设置一些值?

您可以添加一个drawable:

@drawable/splashscreen

如提交中所示,底部的示例:

https://android.googlesource.com/platform/frameworks/base/+/7d0d10275213f23e2bd200d22822a3b700157688%5E%21/

<item name="android:colorBackground">@color/blue</item>
<item name="android:windowBackground">@color/blue</item>
</style>
+    <style name="CustomSplashscreen" parent="@android:style/Theme.Material.Light.NoActionBar">
+        <item name="android:windowSplashscreenContent">@drawable/splashscreen</item>
+    </style>
</resources>

相关内容

  • 没有找到相关文章

最新更新