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

Android: Transform and color resets after animation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 1.8.0
    • Fix Version/s: Release 3.2.0
    • Component/s: Android
    • Environment:

      Titanium SDK version: 1.8.0.1 RC3
      Javascript Engine: Rhino & V8
      Platform & version: Android 2.2+
      Device Details: Android emulator
      Host Operating System: OSX 10.7.2
      Titanium Studio version: 1.0.7.201112132151

      Description

      Problem

      When animating a view's transform, the transform will disappear, or be reset, after the animation completes on Android. It works fine on iOS.

      Code to Reproduce

      http://pastie.org/3059555

      Just run the code listed there for both Android and iOS. On iOS, the view will animate to the bottom-right, and rotate 60 degrees. On Android, the same thing will happen, but when the animation completes, the rotation goes back to zero. The same thing happens if you apply a scale. All other properties, like left, top, opacity, etc... work fine, only the transform resets on Android.

      I attempted to workaround this by setting the view's transform to the animations transform in the animation's complete event, but there is a very noticable flicker when this happens, very ugly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                tlukasavage Tony Lukasavage
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code