Question

i have an image view, when the image loads i want to make an action, for example an alert.I'm using eventListener method to implement this. here's my code

imageView.addEventListener('load', function()
{
    alert(1);
});

this workd fine with iphone, but not firing anything with android, how can achieve this within android? thanks alot.

Was it helpful?

Solution

Unfortunately Appcelerator has not resolved this issue in Titanium Mobile quite yet, however the following workaround may be used for both remote and local images to achieve your desired result.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top