{ "id": "94027", "key": "TIMOB-9827", "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": "13502", "description": "Sprint 2012-14 Core", "name": "Sprint 2012-14 Core", "archived": true, "released": true, "releaseDate": "2012-07-15" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "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-08-01T04:36:21.000+0000", "created": "2012-06-27T17:39:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_animation", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "13270", "description": "Release 1.8 Service Pack 3 (CI for 1_8_X)", "name": "Release 1.8.3", "archived": true, "released": false } ], "issuelinks": [ { "id": "31064", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "83792", "key": "TIMOB-6658", "fields": { "summary": "Animation callback not firing till user clicks", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "18749", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "93974", "key": "TIMOB-9813", "fields": { "summary": "Android: Animation: An animated object,if clicked while animation,makes parent window transparent for the area of animation.", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "18746", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "94569", "key": "TIMOB-9954", "fields": { "summary": "Android: Animate incorrectly positions when ti.ui.defaultunit is set to a non-platform default (Tiapp.xml)", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "21816", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "102879", "key": "TIMOB-11298", "fields": { "summary": "Android: Animation - A blue view disappears after device is rotated to a landscape mode", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2013-08-14T18:30:06.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": "h4. Problem Description\r\nViews are not animating in Android.\r\n\r\nh4. Actual Results\r\nThe animation is not happening in the view.\r\n\r\nh4. Expected results\r\nIf you animate a view, you should see it animated.\r\n\r\nh4. Test Case\r\n1. Create Mobile Project\r\n2. Paste this app.js\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({backgroundColor:'#FFFFFF'});\r\n\r\nvar ds =[];\r\nexpandableView = Ti.UI.createView({top:0,height:60,backgroundColor:'red'});\r\nnextview = Ti.UI.createView({layout:'vertical',top:-60,height:60,backgroundColor:'blue'});\r\nvar row1 = Titanium.UI.createTableViewRow({height:100});\r\nrow1.add(expandableView);\r\n\r\nds.push(row1);\r\n\r\nvar row2 = Titanium.UI.createTableViewRow({height:100});\r\nrow2.add(nextview);\r\n\r\nds.push(row2);\r\n\r\n\r\nvar btn1 = Ti.UI.createButton({\r\n\t\t\t\t\ttitle : 'Yes',\r\n\t\t\t\t\twidth : '50%',\r\n\t\t\t\t\theight : 30,\r\n\t\t\t\t\tbottom : 0,\r\n\t\t\t\t\tleft : 0,\r\n\t\t\t\t\tfont : {\r\n\t\t\t\t\t\tfontSize : 13,\r\n\t\t\t\t\t\tfontWeight : 'bold',\r\n\t\t\t\t\t\tfontFamily : 'Helvetica Neue'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tcolor : '#FFFFFF',\r\n\t\t\t\t\tbackgroundImage:'none',\r\n\t\t\t\t\tbackgroundColor:'yellow'\r\n\t\t\t\t});\r\n\t\t\r\n\t\t\tvar btn2 = Ti.UI.createButton({\r\n\t\t\t\t\ttitle : 'No',\r\n\t\t\t\t\twidth : '50%',\r\n\t\t\t\t\theight : 30,\r\n\t\t\t\t\tbottom : 2,\r\n\t\t\t\t\tright : 0,\r\n\t\t\t\t\tfont : {\r\n\t\t\t\t\t\tfontSize : 13,\r\n\t\t\t\t\t\tfontWeight : 'bold',\r\n\t\t\t\t\t\tfontFamily : 'Helvetica Neue'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tcolor : '#858686',\r\n\t\t\t\t\tbackgroundImage:'none',\r\n\t\t\t\t\tbackgroundColor:'green'\r\n\t\t\t\t});\r\nbtn1.addEventListener('click',function(){\r\n\tnextview.animate({top:0,duration:500})\r\n});\r\nbtn2.addEventListener('click',function(){\r\n\tnextview.animate({top:-60,duration:500})\r\n});\r\nvar tableView = Titanium.UI.createTableView({\r\n\t\t\tdata : ds,\r\n\t\t\tscrollable : true,\r\n\t\t\tseparatorColor : 'transparent',\r\n\t\t\tseparatorStyle: 'none',\r\n\t\t\ttop:0\r\n\t});\r\n\r\n\r\nwin1.add(tableView);\r\nwin1.add(btn1);\r\nwin1.add(btn2);\r\nwin1.open();\r\n\r\n{code} \r\n\r\nh4. Extra info\r\nWhen you test this in iOS, works just perfect. ", "attachment": [ { "id": "29281", "filename": "app.js", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-13T14:12:44.000+0000", "size": 3360, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Android: Translate animations of invisible views may be delayed", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 2.1.0 (06/25/12 11:43 6254d1a)\r\nJavascript Engine: V8 \r\nPlatform & version: iOS 5.x, Android 2.3 \r\nDevice Details: iOS simulator, Android emulator \r\nHost Operating System: OS X 10.7.3 \r\nTitanium Studio version: 2.0.3", "comment": { "comments": [ { "id": "203071", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "h3. Testing Notes\r\n\r\n* Create a new app. Put...\r\n\r\n{code}\r\ndip\r\n{code}\r\n\r\n... in the tiapp.xml.\r\n\r\n* Replace the app.js with the attached app.js (i.e., the attached file, not the customer's failcase in the JIRA description), which contains the original failcase from the customer and an expanded test case.\r\n\r\n* Test the app on 2.3 and Honeycomb or higher (ICS would be good.) Behavior should be as described in the following sections. *Note* that in 2.3, when testing the expanded test case, you will see bad artifacts, namely the parent view of the view that is being animated will suddenly become transparent (or parts of it, anyway.) **This is not a regression.** (Feel free to run it in 1.8.2, for example, and you'll see it happens all the way back then.) We have TIMOB-9813 for that problem. For the purposes of this ticket, you should validate that a) the animations appear when they should; and b) their final positions are as expected.\r\n\r\nh4. Original failcase app\r\n\r\nWhen you run the original failcase *without* my fixes, when you tap the yellow at the bottom of the screen nothing will happen (unless you tap it *very* quickly after its activity loads.) When testing with my fixed branch, when you tap the yellow at the bottom then a blue view should slide into view, and when you press the green area at the bottom then that blue view should slide back up and disappear.\r\n\r\nh4. Expanded Test Case\r\n\r\nWhen you test the expanded test case *without* my fixes, very herky jerky animations will occur, and the paths that some of the animations take to get to their new location will look ridiculous. When you test *with* my fixes, you will get nice smooth animations (though, as noted above, in 2.3 or lower you will see parent transparency, which is a bug covered by another ticket).\r\n\r\nThis \"expanded\" test, by the way, does the following:\r\n\r\n* The red box (upper-left of the blue box) starts at position minus 5 and minus 15, i.e., the box is partially obscured. These negative values are on purpose, because I wanted to make sure it works with negative origin values.\r\n\r\n* When you click the \"animate\" button the first time, the red box will slide down to be on top of the white box.\r\n\r\n* Then, each time you click \"animate\", it will move to the next edge of the white box in a clockwise direction (top>right>bottom>left).\r\n\r\n* Then it'll pounce back up to its origin and start all over again.\r\n", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-12T19:20:28.000+0000", "updated": "2012-07-12T19:31:07.000+0000" }, { "id": "203072", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Changing title from:\r\n\r\n\"Android: Animate is not working on Tableviews\"\r\n\r\nto:\r\n\r\n\"Android: Translate animations of invisible views may be delayed\"\r\n\r\nThe problem is not specific to table views, but is rather something that is happening with views which start out invisible because they have negative boundaries.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-12T19:25:55.000+0000", "updated": "2012-07-12T19:26:43.000+0000" }, { "id": "203073", "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/2556", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-12T19:34:04.000+0000", "updated": "2012-07-12T19:34:04.000+0000" }, { "id": "208011", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified On: \r\nSDK: 2.1.1.v20120716180600\r\nStudio: 2.1.1.201207161421\r\nDevice: Samsung Galaxy tab(V 3.2)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-17T04:47:36.000+0000", "updated": "2012-07-17T04:47:36.000+0000" }, { "id": "210959", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-01T04:35:41.000+0000", "updated": "2012-08-01T04:35:41.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }