{ "id": "81204", "key": "TIMOB-5460", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "12080", "description": "", "name": "Sprint 2011-40", "archived": true, "released": true, "releaseDate": "2011-10-10" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-31T16:21:19.000+0000", "created": "2011-10-06T13:46:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_animation", "qe-testadded", "stage" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "13895", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "80734", "key": "TIMOB-5389", "fields": { "summary": "Android: Support animation of background color", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-25T16:23:46.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": "add ability to animate backgroundColor. Note the view MUST have a backgroundColor and no backgroundImages for this to work.\r\n\r\n{code:title=app.js}\r\n\r\nTi.UI.setBackgroundColor('black');\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'black'\r\n});\r\n\r\nvar fromColor = '#2d6e32';\r\nvar toColor = '#35883b';\r\n\r\nvar v = Ti.UI.createView({\r\n\twidth: '100dp',\r\n\theight: '100dp',\r\n\tbackgroundColor: fromColor\r\n});\r\n\r\nvar b = Ti.UI.createButton({\r\n\ttitle: 'Animate',\r\n\tbottom: '10dp',\r\n\tleft: '10dp'\r\n});\r\n\r\nb.addEventListener('click', function() {\r\n\tv.animate({\r\n\t\tbackgroundColor: toColor,\r\n\t\tduration: 500\r\n\t});\r\n});\r\n\r\nvar b1 = Ti.UI.createButton({\r\n\ttitle: 'Reset',\r\n\tbottom: '10dp',\r\n\tright: '10dp'\t\r\n});\r\n\r\nb1.addEventListener('click', function() {\r\n\tv.backgroundColor = toColor;\r\n\tv.backgroundColor = fromColor;\r\n});\r\n\r\nvar v1 = Ti.UI.createView({\r\n\twidth : '50dp',\r\n\theight: '50dp',\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nwin.add(v);\r\nwin.add(b);\r\nwin.add(b1);\r\nwin.add(v1);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Support Animation of backgroundColor", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "180631", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.1.v20120125154634 on Droid 3 2.3.4", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-25T16:23:46.000+0000", "updated": "2012-01-25T16:23:46.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }