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

Android: Simple animation is not working in Android

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 2.0.0, Release 1.8.1
    • Component/s: Android
    • Environment:

      Titanium SDK version: 1.8.1, 1.9CI
      Javascript Engine: Rhino / V8
      Platform & version: Android 2.2
      Device Details: Android emulator
      Host Operating System: OSX Lion
      Titanium Studio version: 1.0.8

      Description

      Problem description

      Animation on views are not working in Android (Tested on iOS, working flawless).

      Expected behavior

      The animation happening.

      Actual behavior

      1.8.1: The program just ignores the animation. It just sits there.

      1.9CI: It crashes (Related to TIMOB-7416).

      Test Case

       
      var win1 = Titanium.UI.createWindow({  
       
          backgroundColor:'#000'
      });
      var box = Ti.UI.createView({
          backgroundColor : 'red',
          height : '150',
          width : '100'
      });
       
       box.addEventListener('click', function() {
          //alert('Clicked');
          var matrix = Ti.UI.create2DMatrix()
          matrix = matrix.rotate(90);
          matrix = matrix.scale(2, 2);
          var a = Ti.UI.createAnimation({
                  transform : matrix,
                  duration : 2000,
                  autoreverse : true,
                  repeat : 3
              });
          box.animate(a);
      }); 
       
      win1.add(box);
       
      win1.open();
      

      Community Discussion

      http://developer.appcelerator.com/question/131556/animation-in-andriod-app-not-working

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                mpmiranda Mauro Parra-Miranda
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration