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

Android: ListView - ImageView with images[] array does not animate

    Details

      Description

      Problem Description

      ImageView with images in listView item cannot start animation on event. But it’s working well in IOS. If I use single imageView with images property then its animate good with event fire.

      Test Environments

      OS: MAC OX X 10.8.5

      Ti SDK: 3.1.2 GA, 3.1.3 GA
      Ti CLI: 3.2.0
      Simulator 7.0
      Android Emulator with Android SDK 2.3.3
      Android Device

      Test Code

      index.xml

       
      <Alloy>
      	<Window title="List View" class="container">
      		<ListView id="list" defaultItemTemplate="bigCard" separatorColor="transparent">
      			<Templates>
      				<ItemTemplate name="bigCard" height="110dp">
      					<ImageView bindId="spinner" class="spinner" onLoad="startAnimate" />
      				</ItemTemplate>
      			</Templates>
      			<ListSection >
      				<ListItem    />
      			</ListSection>
      		</ListView>
      		 
      	</Window>
      </Alloy>
      

      index.js

      function startAnimate(e) {
      	Ti.API.info('clciked!');
      	e.source.start();
      }
       
      $.index.open();
      
      

      index.jss

       
       
       
       
       
       
      ".spinner": {backgroundColor: 'red', images: [ "/images/apple.png", "/images/arrow-up.png", "/images/arrow-down.png" ], },
      

      Step to reproduce

      1. Run IOS Simulator
      2. Run on Android Emulator/Device
      3. Compare both results

      Expected Result

      Images are animating for both OS

      Output Result.

      IOS working good but not working in Android

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sunila Sunila
                Reporter:
                mrahman Mostafizur Rahman
                Reviewer:
                Hieu Pham
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration