uni-app使用自定义启动页,安卓端会适配手机底部透明菜单而闪动

在manifest.json -> app-plus -> distribute -> splashscreen 添加 "androidTranslucent" : true,//注意源码视图中有两块 splashscreen 不要加错地方了

 "splashscreen" : {
                "alwaysShowBeforeRender" : false,
                "autoclose" : true,
                "waiting" : true,
                "androidStyle" : "default",
                "iosStyle" : "storyboard",
                "android" : {
                    "hdpi" : "qidongye/1080x1882start.9.png",
                    "xhdpi" : "qidongye/1080x1882start.9.png",
                    "xxhdpi" : "qidongye/1080x1882start.9.png"
                },
                "androidTranslucent" : true,
                "ios" : {
                    "storyboard" : "qidongye/ios启动.zip"
                },
                "useOriginalMsgbox" : true
            }

 

posted @ 2024-12-10 08:48  我有头盔  阅读(55)  评论(0编辑  收藏  举报