Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16504] Android: Calling rotate on a 2DMatrix does not rotate the view properly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionHold
Resolution Date2014-05-07T20:21:14.000+0000
Affected Version/sRelease 3.2.1
Fix Version/s2014 Sprint 09, 2014 Sprint 09 SDK
ComponentsAndroid
Labelslook1, regression, supportTeam
ReporterEduardo Gomez
AssigneeHieu Pham
Created2014-02-25T20:54:19.000+0000
Updated2017-03-24T18:23:54.000+0000

Description

Issue description

Starting 3.2.0.GA SDK, an issue cropped up where rotate transforms are not applied correctly. Attached an image/sample of the maps flow showing the issue on the annotations object. The disclosure arrows on the right side of table cells and map annotations are made by rotating two thin rectangular views and they are displaying properly in the list at the bottom of the image or when running isolated test case (app.js/app.js.png).

Reproduction steps

(1) Launch sample "TravisTestApp.zip" (2) Click map annotation (3) Monitor result. They also intermittently show incorrectly as equals signs. But show as an unrotated equals sign in the map annotation Screen shoot: MapTest_BrandableArrow.png The basics are that we are creating a view and then performing a transform by doing a: - view.transform = Ti.UI.create2DMatrix().rotate(ROTATION_DEGREES);

Additional details

Also tried performing the transform after adding the object to the container instead of before, and grouping the transform into the initial createView() call but neither resolves the issue.

Attachments

FileDateSize
app.js2014-02-25T20:54:19.000+00001142
app.js.png2014-02-25T20:54:19.000+000013491
MapTest_BrandableArrow.png2014-02-25T20:54:19.000+0000235594
MapTest_ImageView.png2014-02-25T20:54:19.000+0000235356
TravisTestApp.zip2014-02-25T20:54:19.000+00002477003

Comments

  1. Lokesh Choudhary 2014-03-03

    Verified the issue is reproducible. Running app.js gives us the expected arrow. Running the travis app gives me "=" rather than the arrow on all devices tested. Environment: Appc Studio : 3.2.1.201402061120 Ti SDK : 3.2.1.GA , 3.2.0.GA Mac OSX : 10.8.5 Alloy : 1.3.1 CLI - 3.2.1 Samsung S4 - android 4.2.2 Nexus 5 - android 4.4.2 Sony Xperia - android 2.3.7
  2. Daniel Fortner 2014-03-25

    [~ingo] thank you for the update. I will check with the customer (on our weekly call Tuesday) and will try to position this item for 3.3.0.
  3. Hieu Pham 2014-05-07

    Our view animation is done via onGlobalLayout callback, which triggers when global layout state or the visibility of views within the view tree changes. This happens after onLayout is invoked. MapView, however, does not trigger this callback, therefore no animation is performed. Since map v2 source code is not open source, we will have to put this on hold. A simple workaround would be to have an imageView, which should not affect performance or memory, as long as the image is resized properly.
  4. Ingo Muschenetz 2014-05-08

    As this was resolved as "hold" removing it from 3.3.0 release.

JSON Source