Nativescript启动文件背景色

Nativescript启动文件背景色,nativescript,Nativescript,而不是位图-我可以设置启动屏幕的背景色吗 是的,您可以像在本机环境中一样执行此操作 app/app\u Resources/Android/drawable nodpi/splash\u screen.xml 别忘了“注册”你的颜色 app/app\u Resources/Android/values/colors.xml #00ff00 是的,您可以像在本机环境中一样执行此操作 app/app\u Resources/Android/drawable nodpi/splash\u scr

而不是位图-我可以设置启动屏幕的背景色吗


是的,您可以像在本机环境中一样执行此操作

app/app\u Resources/Android/drawable nodpi/splash\u screen.xml


别忘了“注册”你的颜色

app/app\u Resources/Android/values/colors.xml


#00ff00

是的,您可以像在本机环境中一样执行此操作

app/app\u Resources/Android/drawable nodpi/splash\u screen.xml


别忘了“注册”你的颜色

app/app\u Resources/Android/values/colors.xml


#00ff00

Hi dashman您可以使用
nativescript splashscreen
插件根据需要设置splashscreen的样式。在plugins repo中,您可以查看附带的演示-。嗨,dashman,您可以使用
nativescript splashscreen
plugin根据需要设置splashscreen的样式。在插件回购中,您可以查看附带的演示-。
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="fill">
    <item android:drawable="@color/my_color"/>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="my_color">#00ff00</color>
</resources>