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

Android: Animation: An animated object,if clicked while animation,makes parent window transparent for the area of animation.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 2.0.2, Release 2.1.0, Release 2.0.1, Release 1.8.3
    • Component/s: Android
    • Environment:

      Tested with Titanium SDK: 2.1.0.v20120625134154
      Tested with Titanium  Studio: 2.1.0.201206251749
      Device - Android 2.2.2 LG-P970,Motorola Milestone Android 2.2.1
      Machine OS - MAC 10.7.3

      Description

      This is not a regression. It exists as far as 1.8.2.
      It works fine on android 3.2 and android 4.0.2.
      It the object is clicked again while animation, it makes the parent window transparent in the span of the area of its animation.

      Steps to reproduce
      1) Use the code below

      var win = Ti.UI.createWindow({
          backgroundColor:'green'
      });
       
      var box = Ti.UI.createView({
                  backgroundColor : 'red',
                  height : '150',
                  width : '100'
              });
       
              box.addEventListener('click', function() {
                  var matrix = Ti.UI.create2DMatrix()
                   
                  matrix = matrix.scale(2, 2);
                  var a = Ti.UI.createAnimation({
                      transform : matrix,
                      duration : 2000,
                      autoreverse : true,
                      repeat : 3
                  });
                  box.animate(a);
              });
              win.add(box);
      win.open();
      

      2) Run the app
      3) Click the red box and again click it while it is animating

      Actual result:
      2) After step 2,a green window with a red view is displayed.
      3) After step 3,the red box animates but makes the green window transparent and the splashscreen is partially visible (only in the area used by red box to animate).

      Expected result:
      2) After step 2,a green window with a red view is displayed.
      3) After step 3,the red box animates and the splashscreen should not be visible at all.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                billdawson Bill Dawson
                Reporter:
                sbhadauria Shyam Bhadauria
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code