[TIMOB-10637] BlackBerry: Titanium.UI.ImageView does not support remote images
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-22T22:12:31.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 15 API, 2013 Sprint 15, Release 3.1.2, Release 3.2.0 |
Components | BlackBerry |
Labels | module_imageview, qe-closed-3.1.2, qe-testadded |
Reporter | Hayk Zakaryan |
Assignee | Pedro Enrique |
Created | 2012-08-27T06:29:10.000+0000 |
Updated | 2014-06-19T12:44:03.000+0000 |
Description
When trying to create ImageView with image attribute as
image:'http://christainnewyork.files.wordpress.com/2011/09/eyes-on-fire.jpg'
(just example of remote image).
It doesn't actually appear on the screen.
"There is no API for remote image initialization. For now you would need to download and store the image to the device then reference it once saved. This functionality could be placed into a Custom Component then re-used as needed." - Garret
We will not do a custom implementation in the scope of Beta. Please update the API doc to reflect this limitation.
We need this functionality as it is commonly used in titanium development. Let's do as Garet recommends and download and save the image using http if the path is a url. Here is the test that should work: var win = Ti.UI.createWindow({ backgroundColor: 'white' }); win.open(); var iv = Ti.UI.createImageView({ image: "http://christainnewyork.files.wordpress.com/2011/09/eyes-on-fire.jpg", height: 200, width: 200, backgroundColor: 'yellow' }); win.add(iv);
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/124
Verified fixed. Remote image showing correctly. Titanium SDK 3.1.2.v20130808180613 Alloy 1.2.0-alpha6 Appcelerator Studio 3.1.2.201308071912 CLI 3.1.2-alpha Node 0.10.13 Closing.