Titanium 钛:远程图像不显示为视网膜的图像视图
目前正在使用SDK 3.5.1 我有一些远程托管的图像,我正在加载到我的ImageView中。我已经雇了人:真的已经定了 以下是我正在使用的代码:Titanium 钛:远程图像不显示为视网膜的图像视图,titanium,titanium-mobile,appcelerator,appcelerator-mobile,Titanium,Titanium Mobile,Appcelerator,Appcelerator Mobile,目前正在使用SDK 3.5.1 我有一些远程托管的图像,我正在加载到我的ImageView中。我已经雇了人:真的已经定了 以下是我正在使用的代码: var hasattachesThumbIcon = Ti.UI.createImageView({ width:96, height:'auto', top:6, bottom:6, rig
var hasattachesThumbIcon = Ti.UI.createImageView({
width:96,
height:'auto',
top:6,
bottom:6,
right:10,
image:hasattachesThumb,
defaultImage:'/icons/placeholder_big.png',
hires:true,
});
我认为问题在于我没有明确设置图像的高度。原因是图像的大小和纵横比都不同,我唯一的要求是它们应该适合96像素的块,所以我将其设置为这样
有什么想法吗
谢谢 您是在测试2倍还是3倍的图像?如果您正在尝试3X图像,则由于支持仍然不存在,因此租用将不起作用。正如Mark所建议的,将auto更改为tianium.UI.SIZE,因为auto已被弃用。您还可以确认在下载远程图像之前是否显示默认图像?您是否尝试将高度设置为Ti.UI.SIZE“自动”被认为是不合格的。