看了这个:http://ask.dcloud.net.cn/article/13008
然后弄了个,苹果上自己画的splash速度效果都不错,然后安卓机上挡不住tabbar
求解啊
代码放在app中:
//声明
var view = new plus.nativeObj.View("Splashscreen", {
top: 0,
left: 0,
bottom: 0,
width: plus.screen.resolutionWidth,
height: plus.screen.resolutionHeight
});
//添加图片
if(plus.storage.getItem("SplashscreenSrc")){
view.drawBitmap(plus.storage.getItem("SplashscreenSrc"), {}, {}, "");
}else{
view.drawBitmap("static/splash.jpg", {}, {}, "");
}
//显示
view.show();
plus.navigator.closeSplashscreen();//干掉启动页
setTimeout(function() {
if(view){
view.close();//干掉启动广告页
}
}, 3000)
2 个回复
Geeker (作者)
好吧 自己解决了 > height: plus.screen.resolutionHeight +45
前端大白 - 前端攻城狮
这个路径支持网络路径吗?还是说非要下载到本地?