Project: titanium
Issue TIMOB-18392: Android: ImageView with ImageArray, does not fire 'stop' event after repeatCount value has been reached
When using the ImageView with an *array* of images using the *images* property and *repeatCount* set to a non-zero value - the event *stop does not fire*. The event *start* *does* fire upon starting, however the *stop* event does *not*. {code:title=View|xml} {code} {code:title=Controller|JavaScript} var handler = function (e) { var currentdate = new Date(); var datetime = + currentdate.getHours() + ":" + currentdate.getMinutes() + ":" + currentdate.getSeconds(); Ti.API.info(e.type + ': ' + datetime); }; $.img.addEventListener('start', handler); $.img.addEventListener('stop', handler); $.img.setImages([ "/images/red/red1.png", "/images/red/red2.png", "/images/red/red3.png", "/images/red/red4.png", ]); $.img.start(); {code}
Story points: 5