{ "id": "152656", "key": "TIMOB-19870", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-05-10T19:47:25.000+0000", "created": "2015-11-04T19:05:43.000+0000", "epic": { "id": 151897, "key": "TIMOB-19699", "name": "Android: Hyperloop for Android module", "summary": "Bring Hyperloop to Android", "color": { "key": "color_4" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2017-03-20T21:37: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" }, { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": null, "attachment": [], "flagged": false, "summary": "Android: Support adding Ti.UI.Views to native view groups", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "385322", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Looks like this is already supported. I tried replacing the app/android/alert.js controller contents with:\r\n{code:javascript}\r\n(function (container) {\r\n\tvar FrameLayout = require('android.widget.FrameLayout'),\r\n\t\tLayoutParams = FrameLayout.LayoutParams,\r\n\t\tActivity = require('android.app.Activity'),\r\n\t\tGravity = require('android.view.Gravity'),\r\n\t\tView = require('android.view.View'),\r\n\t\tactivity = new Activity(Ti.Android.currentActivity),\r\n\t\tview,\r\n\t\tmain,\r\n\t\tlayoutParams;\r\n\r\n\t// TODO Create a native view group (like RelativeLayout or FrameLayout)\r\n\t// Add a Ti.UI.Button or something to it\r\n\r\n\t// Create a native layout to add our boxes to\r\n\tmain = new FrameLayout(activity);\r\n\tmain.setLayoutParams(new LayoutParams(600, 600, Gravity.TOP)); // Make containing view large enough to hold box when animated\r\n\r\n\t// create a Ti.UI.View to add into the native group\r\n\tview = Ti.UI.createLabel({\r\n\t\tcolor: '#900',\r\n\t\t font: { fontSize:48 },\r\n\t\t shadowColor: '#aaa',\r\n\t\t shadowOffset: {x:5, y:5},\r\n\t\t shadowRadius: 3,\r\n\t\t text: 'A simple label',\r\n\t\t textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n\t\t top: 30,\r\n\t\t width: Ti.UI.SIZE, height: Ti.UI.SIZE\r\n\t});\r\n\r\n\tmain.addView(view);\r\n\t// add containing view to Ti view\r\n\tcontainer.add(main);\r\n\r\n})($.alert_container);\r\n{code}\r\n\r\nAnd it just seemed to magically work.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-05-10T19:47:25.000+0000", "updated": "2016-05-10T19:47:25.000+0000" }, { "id": "413996", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T21:37:06.000+0000", "updated": "2017-03-20T21:37:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }