Titanium 无法确定位图边界。如果加载了位图,它将赢得';不可缩放
嗨,当我从一个窗口移动到另一个窗口,然后又回到第一个窗口时,我在钛合金中遇到了错误。 第一个窗口包含png图像。想知道如何删除此错误thx 代码:Titanium 无法确定位图边界。如果加载了位图,它将赢得';不可缩放,titanium,titanium-mobile,titanium-modules,Titanium,Titanium Mobile,Titanium Modules,嗨,当我从一个窗口移动到另一个窗口,然后又回到第一个窗口时,我在钛合金中遇到了错误。 第一个窗口包含png图像。想知道如何删除此错误thx 代码: var noteview = Ti.UI.createImageView({ image : 'TaskNote.png', width : '10%', left : '70%', height:'70%', labelname:'Note' }); not
var noteview = Ti.UI.createImageView({
image : 'TaskNote.png',
width : '10%',
left : '70%',
height:'70%',
labelname:'Note'
});
noteview.addEventListener('click', function(e) {
var tasknotewindow = Ti.UI.createWindow({
backgroundColor : 'white',
layout : 'vertical',
url : 'TimeTracker/tasknote.js'
});
tasknotewindow.starttime=inlabel.text;
tasknotewindow.open();
});
错误:
var noteview = Ti.UI.createImageView({
image : 'TaskNote.png',
width : '10%',
left : '70%',
height:'70%',
labelname:'Note'
});
noteview.addEventListener('click', function(e) {
var tasknotewindow = Ti.UI.createWindow({
backgroundColor : 'white',
layout : 'vertical',
url : 'TimeTracker/tasknote.js'
});
tasknotewindow.starttime=inlabel.text;
tasknotewindow.open();
});
01-08 12:37:42.111:W/tidrawable参考(501):(主要)[29531932]
无法确定位图边界。如果加载了位图,则不会加载
被缩放
请粘贴您的代码和错误。让我们看看你做了什么。你能告诉我们错误吗?错误::01-08 12:37:42.111:W/TiDrawableReference(501):(main)[29531932]无法确定位图边界。如果加载了位图,它将不会被缩放。请尝试使用
backgroundImage
属性而不是image
。Aditya,您可以添加更多的代码吗?我指的是如何在窗口之间移动。也许这会更具描述性。