[AC-4008] Late or no loading of remote images on ImageView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-07-21T15:04:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Aliya |
Assignee | Shak Hossain |
Created | 2016-07-06T20:57:19.000+0000 |
Updated | 2016-07-21T15:04:15.000+0000 |
Description
I'm doing something really simple that used to work over a year ago on Titanium version 3.5.1. I'm creating new table view rows while looping through some data. The table view rows each have an image view, and i'm setting the 'image' to a remote image url. For some reason the images sometimes don't load. Sometimes, if i go back on to that screen, more of the images load. It is very unreliable. This used to work fine in the past.
Code snippets:
table view row - xml:
code to set image - js:
if (data.imageUrl != null) { // check if remote url is available
newSearchRow.$.imgsmall.image = data.imageUrl; // set image
}
The result i'm seeing is that sometimes the remote image loads, but mostly the default image remains.
Hello, can you share a full sample code. Can you provide a sample code that regenerates the issue? We will test it in our environment and provide guidance. Thanks.