Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18392

Android: ImageView with ImageArray, does not fire 'stop' event after repeatCount value has been reached

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.4.0, Release 3.4.1, Release 3.5.0
    • Fix Version/s: Release 4.1.0
    • Component/s: Android
    • Environment:
      • OSX
      • Titanium Studio
      • All Ti SDKs from 3.3 - no tests prior
      • Multiple Android SDKs
      • GenyMotion and physical devices, each with multiple versions installed
    • Story Points:
      5
    • Sprint:
      2015 Sprint 05 SDK

      Description

      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.

      View

      <ImageView
          id="img"
          backgroundColor="purple",
          duration="200",
          height="50",
          repeatCount="20",
          width="50"
      />
      

      Controller

      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();
      

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              core13 Malcolm Hollingsworth
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-19610
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration