{ "id": "102372", "key": "TIMOB-13134", "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": "15109", "description": "2013 Sprint 11", "name": "2013 Sprint 11", "archived": true, "released": true, "releaseDate": "2013-06-03" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-05-24T08:36:58.000+0000", "created": "2012-09-28T17:51:33.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "animation", "bug", "exalture" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-27T18:34:36.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": "this code is from Lab340 of the TCMD course lab \r\n{code}\r\nvar an = {}; // namespace an=animation\r\n\r\n(function() {\r\n\tan.ui = {};\r\n\t\r\n\tan.ui.createApplicationWindow = function(){\r\n\t\t// we've laid out most of the UI for you; here's the window\r\n\t\tvar win = Ti.UI.createWindow({\r\n\t\t\tbackgroundColor:'#fff'\r\n\t\t});\r\n\t\t// and a heading\r\n\t\twin.add(Ti.UI.createLabel({\r\n\t\t\ttext:'Click the boxes for fun!',\r\n\t\t\tcolor:'#000',\r\n\t\t\tfont:{\r\n\t\t\t\tfontSize:20,\r\n\t\t\t\tfontWeight:'bold'\r\n\t\t\t},\r\n\t\t\theight:'auto',\r\n\t\t\twidth:'auto',\r\n\t\t\ttop:10\r\n\t\t}));\r\n\t\tvar box = function(color, whatsItDo) {\r\n\t\t\t// helper function for making colored boxes\r\n\t\t\tvar bx = Ti.UI.createView({\r\n\t\t\t\theight:50,\r\n\t\t\t\twidth:100,\r\n\t\t\t\tbackgroundColor:color\r\n\t\t\t});\r\n\t\t\t// box contains a centered label\r\n\t\t\tbx.add(Ti.UI.createLabel({\r\n\t\t\t\theight:'auto',\r\n\t\t\t\twidth:'auto',\r\n\t\t\t\ttext: whatsItDo,\r\n\t\t\t\tcolor:'#fff',\r\n\t\t\t\tfont:{\r\n\t\t\t\t\tfontWeight:'bold'\r\n\t\t\t\t}\r\n\t\t\t}));\r\n\t\t\treturn bx;\r\n\t\t};\r\n\t\t\r\n\t\t// now we'll add four colored boxes and set a helper variable you'll need later\r\n\t\tvar box1 = box('red', 'fade out/in'),\r\n\t\t\tbox2 = box('green', 'fly out/in'),\r\n\t\t\tbox3 = box('yellow', 'transition'),\r\n\t\t\tbox4 = box('blue', 'transition'),\r\n\t\t\tselectedIndex = 0;\r\n\t\tbox1.top = 50;\r\n\t\tbox2.top = 120;\r\n\t\tbox3.children[0].color=\"#000\";\r\n\t\twin.add(box1);\r\n\t\twin.add(box2);\r\n\t\t\r\n\t\t// this container holds the two boxes you'll transition between\r\n\t\tvar container = Ti.UI.createView({\r\n\t\t\twidth:'auto',\r\n\t\t\theight: 70,\r\n\t\t\ttop: 180\r\n\t\t});\r\n\t\tcontainer.add(box3);\r\n\t\tcontainer.add(box4);\r\n\t\twin.add(container);\r\n\t\t\r\n\t\t// **************************************************\r\n\t\t// Here's where you come in:\r\n\t\t//\r\n\t\t// add an event listener to box1 so that when clicked, it fades out of view in 2 seconds, then fades back into view\r\n\t\tbox1.addEventListener('click', function(){\r\n\t\t\tbox1.animate({\r\n\t\t\t\topacity:0,\r\n\t\t\t\tduration:2000\r\n\t\t\t}, function(){\r\n\t\t\t\tbox1.animate({\r\n\t\t\t\t\topacity:1,\r\n\t\t\t\t\tduration:2000\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\t// add an event listener to box2 so that when clicked, it slides off the bottom edge of the screen in 2 seconds, then returns\r\n\t\tbox2.addEventListener('click', function(){\r\n\t\t\tbox2.animate({\r\n\t\t\t\ttop:800,\r\n\t\t\t\tduration:2000\r\n\t\t\t}, function(){\r\n\t\t\t\tbox2.animate({\r\n\t\t\t\t\ttop:120,\r\n\t\t\t\t\tduration:2000\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\t// add an event listener to container that tracks odd/even numbered clicks. \r\n\t\t// with odd-numbered clicks, box4 transitions into view using the flip-from-right style\r\n\t\t// for even-numbered clicks, box3 transitions into view using the flip-from-left style\r\n\t\t// this effect will work on only iOS\r\n\t\t\t// **************************************************\r\n\t\t// all done, return the window\r\n\t\treturn win;\r\n\t};\r\n})();\r\nan.mainWin = an.ui.createApplicationWindow();\r\nan.mainWin.open();\r\n{code}\r\n\r\n\r\nwhen running inside the emulator and on a device, box2 animates correctly but as soon as it moves off the screen, the parent window disappears and makes way to the default appcelerator 'splash' screen that is usually bundled with these Labs. \r\n", "attachment": [ { "id": "32147", "filename": "androidanim1.jpg", "author": { "name": "francoisb", "key": "francoisb", "displayName": "Francois Brosseau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T23:11:42.000+0000", "size": 71875, "mimeType": "image/jpeg" }, { "id": "32148", "filename": "androidanim2.jpg", "author": { "name": "francoisb", "key": "francoisb", "displayName": "Francois Brosseau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T23:11:42.000+0000", "size": 71976, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: Animation - Parent window becomes transparent when animated object moves off screen. ", "creator": { "name": "francoisb", "key": "francoisb", "displayName": "Francois Brosseau", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "francoisb", "key": "francoisb", "displayName": "Francois Brosseau", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 2.1.2 GA, 3.0.2 GA\r\nAndroid 2.2", "comment": { "comments": [ { "id": "221468", "author": { "name": "francoisb", "key": "francoisb", "displayName": "Francois Brosseau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "uploaded pictures of expected behavior. ", "updateAuthor": { "name": "francoisb", "key": "francoisb", "displayName": "Francois Brosseau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T23:11:42.000+0000", "updated": "2012-09-28T23:11:42.000+0000" }, { "id": "243197", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 OS 2.3.6, Ti SDK 3.0.2. Also, the first box animation seems to glitch a bit.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T17:42:06.000+0000", "updated": "2013-03-20T17:42:06.000+0000" }, { "id": "248598", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2\nAndroid Emulator: Android SDK version: 2.2 ", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T10:39:39.000+0000", "updated": "2013-04-22T10:39:39.000+0000" }, { "id": "253830", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem cannot reproduced with release 3.2.0\r\n\r\nTested with\r\n\r\nTested with\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.2.0 \r\nAndroid Emulator: Android SDK version: 2.2", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-24T08:36:58.000+0000", "updated": "2013-05-24T08:36:58.000+0000" }, { "id": "415906", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T18:34:36.000+0000", "updated": "2017-03-27T18:34:36.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }