{ "id": "152655", "key": "TIMOB-19869", "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": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-05T20:59:57.000+0000", "created": "2015-11-04T19:04:23.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": "2016-07-22T01:06:11.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": "Be able to pass in some subclass of android.view.View into Titanium methods that take Ti.UI.View subclasses (i.e. Ti.Ui.View.add())", "attachment": [], "flagged": false, "summary": "Android: Support adding native UI elements to Ti.UI.View subclasses", "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, "closedSprints": [ { "id": 517, "state": "closed", "name": "2015 Sprint 22 SDK", "startDate": "2015-10-24T00:30:42.059Z", "endDate": "2015-11-07T01:30:00.000Z", "completeDate": "2015-11-09T02:37:29.441Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "369120", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "{code}\r\nvar FrameLayout = require('android.widget.FrameLayout'),\r\n\tLayoutParams = require('android.widget.FrameLayout.LayoutParams'),\r\n\tViewGroupLayoutParams = require('android.view.ViewGroup.LayoutParams'),\r\n\tGravity = require('android.view.Gravity'),\r\n\tActivity = require('android.app.Activity'),\r\n\tactivity = new Activity(Ti.Android.currentActivity),\r\n\tmain,\r\n\twin = Ti.UI.createWindow(),\r\n\tview = Ti.UI.createView();\r\n\r\n// Create a native layout to add our boxes to\r\nmain = new FrameLayout(activity);\r\nmain.setLayoutParams(new LayoutParams(ViewGroupLayoutParams.MATCH_PARENT, ViewGroupLayoutParams.MATCH_PARENT, Gravity.TOP));\r\n\r\n// Add our layout to the Ti.UI.View\r\nview.add(main);\r\nwin.add(view);\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-05T20:59:57.000+0000", "updated": "2015-11-05T20:59:57.000+0000" }, { "id": "390752", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cwilliams], When I use the code above I get error :\r\n{code}\r\n[ERROR] : TiExceptionHandler: (main) [98,98] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] : TiExceptionHandler: (main) [0,98] - In ti:/module.js:280,9\r\n[ERROR] : TiExceptionHandler: (main) [0,98] - Message: Uncaught Error: Requested module not found: android.widget.FrameLayout\r\n[ERROR] : TiExceptionHandler: (main) [0,98] - Source: \t\tthrow new Error(\"Requested module not found: \" + request);\r\n{code}\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-14T23:47:25.000+0000", "updated": "2016-07-14T23:47:25.000+0000" }, { "id": "391271", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the implementation.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.0.201607111053\r\nTi SDK : 5.4.0.v20160720201924\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.1\r\nMAC El Capitan : 10.11.5\r\nAppc NPM : 4.2.8-1\r\nAppc CLI : 5.4.0-33\r\nNode: 4.4.4\r\nNexus 5 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-22T01:06:07.000+0000", "updated": "2016-07-22T01:06:07.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }