Titanium appcelerator图像视图加载事件监听器不能与android一起使用

Gra*_*ace 5 android event-listener imageview appcelerator-mobile titanium-mobile

我有一个图像视图,当图像加载我想做一个动作,例如一个alert.I正在使用eventListener方法来实现这一点.这是我的代码

imageView.addEventListener('load', function()
{
    alert(1);
});
Run Code Online (Sandbox Code Playgroud)

这与iphone工作得很好,但没有用android解雇任何东西,怎么能在android内实现这个?非常感谢.

Tim*_*ake 2

不幸的是,Appcelerator 尚未解决 Titanium Mobile 中的此问题,但是以下解决方法可用于远程和本地图像,以达到您想要的结果。