{ "id": "151186", "key": "TIMOB-19551", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-09-21T07:24:23.000+0000", "created": "2015-09-15T09:13:29.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "View", "android", "children" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T21:35:04.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" } ], "attachment": [], "flagged": false, "summary": "Android: children not be created from Ti.UI.createView call", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Ti SDK 4.1.x", "comment": { "comments": [ { "id": "364441", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Resolving this as invalid.\r\n\r\nAccording to the docs in http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View-property-children, the `children` property is `READONLY`. ", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-09-21T07:24:11.000+0000", "updated": "2015-09-21T07:24:11.000+0000" }, { "id": "364442", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "\r\nSo, should be changed ios implementation or docs?", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-09-21T07:25:52.000+0000", "updated": "2015-09-21T07:25:52.000+0000" }, { "id": "364443", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "The ios implementation should change.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-09-21T07:31:29.000+0000", "updated": "2015-09-21T07:31:29.000+0000" }, { "id": "364444", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "It changes can hence break related code in ios related projects. I think it requires discussion the topic that requires changes.", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-09-21T07:36:37.000+0000", "updated": "2015-09-21T07:36:37.000+0000" }, { "id": "364453", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Perhaps you could do something like this using this method, add,[http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View-method-add] instead of using the property `children`:-.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n \r\nvar textView = Ti.UI.createView({\r\n\tbackgroundColor : 'red',\r\n\twidth : '200',\r\n\theight : '100'\r\n});\r\n \r\nvar text = Ti.UI.createLabel({\r\n\ttext : \"hello!\"\r\n});\r\n \r\ntextView.add(text);\r\n/*\r\nvar view = Ti.UI.createView({\r\n\tchildren : [textView]\r\n});\r\n*/\r\nvar view = Ti.UI.createView({});\r\nview.add(textView);\r\nwin.add(view);\r\n \r\nwin.open();\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-09-21T08:16:23.000+0000", "updated": "2015-09-21T08:17:34.000+0000" }, { "id": "364454", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "No :) please open the link from description section this bug report.", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-09-21T08:21:32.000+0000", "updated": "2015-09-21T08:21:32.000+0000" }, { "id": "364455", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-09-21T08:25:09.000+0000", "updated": "2015-09-21T08:25:09.000+0000" }, { "id": "364458", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Exactly! And it would be very useful, not only in this case. :)", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-09-21T08:43:55.000+0000", "updated": "2015-09-21T08:43:55.000+0000" }, { "id": "364471", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Because this issue resolved as invalid I created another one TC-5693", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-09-21T13:46:12.000+0000", "updated": "2015-09-21T13:46:12.000+0000" }, { "id": "415407", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T21:35:04.000+0000", "updated": "2017-03-23T21:35:04.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }