{ "id": "113184", "key": "AC-3176", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-04-22T15:19:42.000+0000", "created": "2013-04-22T10:32:56.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "27992", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "112763", "key": "TIMOB-13543", "fields": { "summary": "Android: add support for activityEnterAnimation and activityExitAnimation for Window.close method", "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": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:57:34.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": [], "description": "h2. Problem\r\n\r\nThe open window method have activityEnterAnimation and activityExitAnimation that can be used to specify the animation of the transition between the current and the new activity. The same properties should be available to the close window method so the close animation can be customized. When implemented the attached project should be able to transition both on open and close. \r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#fff',\r\n orientationModes : [Titanium.UI.PORTRAIT],\r\n exitOnClose : true,\r\n navBarHidden : true\r\n});\r\nwin.open();\r\nvar button = Titanium.UI.createButton({\r\n title: 'Open new window',\r\n width: 300,\r\n height: 75\r\n});\r\nbutton.addEventListener('click',function(e) {\r\n var win2 = Ti.UI.createWindow({\r\n\t backgroundColor : '#0ff',\r\n\t orientationModes : [Titanium.UI.PORTRAIT],\r\n\t navBarHidden : true\r\n\t});\r\n\twin2.addEventListener('android:back', function() {\r\n\t\twin2.close({\r\n\t\t\tactivityEnterAnimation: Titanium.App.Android.R.anim.slide_in_right,\r\n \t\tactivityExitAnimation: Titanium.App.Android.R.anim.slide_out_left\r\n\t\t});\r\n\t\t\r\n\t\twin2.removeEventListener('android:back', arguments.callee);\r\n\t})\r\n\twin2.open({\r\n\t\tactivityEnterAnimation: Ti.Android.R.anim.slide_in_left,\r\n \tactivityExitAnimation: Ti.Android.R.anim.slide_out_right\r\n\t});\r\n});\r\nwin.add(button);\r\n{code}", "attachment": [ { "id": "37709", "filename": "Project.zip", "author": { "name": "jesper@x-com.se", "key": "jesper@x-com.se", "displayName": "Jesper Jonsson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-22T10:32:56.000+0000", "size": 751071, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Add support for custom activity close animation", "creator": { "name": "jesper@x-com.se", "key": "jesper@x-com.se", "displayName": "Jesper Jonsson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jesper@x-com.se", "key": "jesper@x-com.se", "displayName": "Jesper Jonsson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version: 3.1.0.GA\r\nJavascript Engine: V8\r\nPlatform & version: Android 4.1.2\r\nDevice Details: Samsung S3 GT-I9300\r\nHost Operating System: OS X 10.8\r\nTitanium Studio version: 3.1.0.201304151600", "comment": { "comments": [ { "id": "248599", "author": { "name": "jesper@x-com.se", "key": "jesper@x-com.se", "displayName": "Jesper Jonsson", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "jesper@x-com.se", "key": "jesper@x-com.se", "displayName": "Jesper Jonsson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-22T10:47:13.000+0000", "updated": "2013-04-22T10:47:13.000+0000" }, { "id": "248603", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Jesper,\r\n\r\nThanks, so I'll close this as duplicate - you can interject in TIMOB-13543 if there's anything you think they're missing.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T15:19:13.000+0000", "updated": "2013-04-22T15:19:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }