{ "id": "97763", "key": "TIMOB-10071", "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": [ { "id": "13574", "description": "Sprint 2012-15 Core", "name": "Sprint 2012-15 Core", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-24T11:50:20.000+0000", "created": "2012-07-23T06:24:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "module_animation", "qe-manualtest", "qe-port" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2014-08-07T17:03:37.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": "h3. Fail Case / Testing Notes\r\n\r\nIf a view's {{opacity}} property is set to 0.0, then is animated to 1.0, when you then animate it back to 0.0 it will happen immediately, without respect for any {{duration}} property you might set on the animation.\r\n\r\n* Create an app and use this as the app.js:\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#444');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#444',\r\n\texitOnClose: true\r\n});\r\n\r\nvar v = Ti.UI.createView({\r\n\topacity: 0, backgroundColor: \"red\",\r\n\ttop: \"20%\", bottom: \"20%\", left: \"10%\", right: \"10%\"\r\n});\r\nwin.add(v);\r\n\r\nvar btn = Ti.UI.createButton({\r\n\tbottom: \"16dp\", height: \"48dp\", left: \"16dp\", width: \"96dp\",\r\n\ttitle: \"Animate\"\r\n});\r\nvar current = -1;\r\nbtn.addEventListener(\"click\", function() {\r\n\tif (current <= 0.0) {\r\n\t\tcurrent = 1.0;\r\n\t} else {\r\n\t\tcurrent = 0.0;\r\n\t}\r\n\tv.animate({opacity: current, duration: 3000});\r\n});\r\nwin.add(btn);\r\n\r\nwin.open();\r\n{code}\r\n\r\n* After the app loads, click the \"Animate\" button. A view will appear (its opacity was 0) and, over the course of three seconds, will animate to be fully opaque (opacity = 1.0).\r\n\r\n* After it is fully opaque, click the \"Animate\" button again.\r\n\r\n*Expected Behavior*: The view's opacity will animate to 0.0 (transparency) over a three second period.\r\n\r\n*Actual Behavior*: The view immediately becomes transparent (i.e., it disappears immediately.)", "attachment": [], "flagged": false, "summary": "Android: Alpha animation from 0.0 to 1.0 will not respect duration property when run back from 1.0 to 0.0", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium 1.8.2 (oldest tested) to 2.1.0 (i.e., _not a regression_). Android any version, desktop OS irrelevant.", "comment": { "comments": [ { "id": "208879", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "pull request ready\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/2625", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-23T09:42:07.000+0000", "updated": "2012-07-23T09:42:07.000+0000" }, { "id": "214722", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120815194913\r\nTested with Titanium  Studio: 2.1.1.201207271312\r\nDevice - Samsung GALAXY Note Android 2.3.6\r\nMachine OS - MAC 10.7.3", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T22:39:07.000+0000", "updated": "2012-08-15T22:39:07.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }