[TIMOB-16504] Android: Calling rotate on a 2DMatrix does not rotate the view properly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Resolved |
Resolution | Hold |
Resolution Date | 2014-05-07T20:21:14.000+0000 |
Affected Version/s | Release 3.2.1 |
Fix Version/s | 2014 Sprint 09, 2014 Sprint 09 SDK |
Components | Android |
Labels | look1, regression, supportTeam |
Reporter | Eduardo Gomez |
Assignee | Hieu Pham |
Created | 2014-02-25T20:54:19.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
app.js | 2014-02-25T20:54:19.000+0000 | 1142 |
app.js.png | 2014-02-25T20:54:19.000+0000 | 13491 |
MapTest_BrandableArrow.png | 2014-02-25T20:54:19.000+0000 | 235594 |
MapTest_ImageView.png | 2014-02-25T20:54:19.000+0000 | 235356 |
TravisTestApp.zip | 2014-02-25T20:54:19.000+0000 | 2477003 |
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
[~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.
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.
As this was resolved as "hold" removing it from 3.3.0 release.