Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Titanium appcelerator image view load event listener not working with android

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.

like image 236
Grace Avatar asked Nov 05 '22 14:11

Grace


1 Answers

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.

like image 142
Timothy Allyn Drake Avatar answered Nov 10 '22 05:11

Timothy Allyn Drake