{ "id": "92176", "key": "TIMOB-9195", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-05-24T09:48:36.000+0000", "created": "2012-05-22T14:59:12.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "parity" ], "versions": [ { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-05-24T10:28:07.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem description\r\nAnimating an imageView on Android with a rotation. Each time the imageView animation is triggered, it starts over from 0 instead of going on from the last position.\r\n\r\nOn iOS it works continually as expected.\r\n\r\nh2. Sample code (imageView file in attachment)\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'gray'\r\n});\r\n\r\nvar iv = Ti.UI.createImageView({\r\n image : '/images/circ.png',\r\n top : 100 - 480\r\n});\r\n\r\nvar gTrans = Ti.UI.create2DMatrix();\r\n\r\nwin.add(iv);\r\n\r\nvar btn = Ti.UI.createButton({\r\n title : 'amin it',\r\n top : 400\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n gTrans = gTrans.rotate(20);\r\n var a = Ti.UI.createAnimation({\r\n duration : 1000\r\n });\r\n a.transform = gTrans;\r\n iv.animate(a);\r\n});\r\nwin.add(btn);\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\nh2. Customer ticket\r\nhttp://support-admin.appcelerator.com/display/APP-563796", "attachment": [ { "id": "27867", "filename": "animation.zip", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T15:00:09.000+0000", "size": 775955, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: imageView Rotation always starts over from 0 degrees", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK all versions\r\nAndroid OS", "comment": { "comments": [ { "id": "195953", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Refer to Android platform notes in http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Animation-object\r\nand http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.2DMatrix.rotate-method-1.html\r\n\r\nAndroid supports 2D matrix transformations. Note that the 2DMatrix.rotate method operates differently on Android. Called with a single argument, it rotates from zero to the specified angle. That is, it ignores any existing rotation. Called with two arguments, it interprets the first argument as a \"from\" angle and the second argument as a \"to\" angle.\r\n\r\n", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-24T10:28:07.000+0000", "updated": "2012-05-24T10:28:07.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }