{ "id": "84640", "key": "TIMOB-16098", "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": null, "resolutiondate": null, "created": "2012-01-10T07:45:30.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "parity" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:13.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "On iOS, Ti.UI.ImageView displays subviews, on Android, it doesn't.\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win;\r\nvar tab;\r\nvar view;\r\nvar label;\r\nwin = Titanium.UI.createWindow({\r\n backgroundColor:'#fff',\r\n title: 'View'\r\n});\r\ntab = Titanium.UI.createTab({\r\n icon: 'KS_nav_views.png',\r\n title: win.title,\r\n window: win\r\n});\r\nview = Titanium.UI.createView();\r\nlabel = Titanium.UI.createLabel({\r\n\tcolor:'#000',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\nwin.add(view);\r\nview.add(label);\r\ntabGroup.addTab(tab);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nwin = Titanium.UI.createWindow({\r\n backgroundColor:'#fff',\r\n title: 'ImageView'\r\n});\r\ntab = Titanium.UI.createTab({\r\n icon: 'KS_nav_ui.png',\r\n title: win.title,\r\n window: win\r\n});\r\nview = Titanium.UI.createImageView({});\r\nlabel = Titanium.UI.createLabel({\r\n\tcolor:'#000',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\nwin.add(view);\r\nview.add(label);\r\ntabGroup.addTab(tab);\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n\r\nOn iOS, you can see each label (\"I am Window 1\" and \"I am Window 2\") depending on which tab is selected. On Android, you can only see \"I am Window 1\" on the first tab; the second seems to be just blank.", "attachment": [], "flagged": false, "summary": "Android: ImageView doesn't display child views", "creator": { "name": "herzberg", "key": "herzberg", "displayName": "Sven Herzberg", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "herzberg", "key": "herzberg", "displayName": "Sven Herzberg", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mac OS X 10.6.8\r\nJava 1.6.0_29\r\nTitanium Studio 1.0.7.201112281340\r\nTitanium Mobile 1.7.6, 1.8.0.1\r\nAndroid SDK 2.2 (API 8)", "comment": { "comments": [ { "id": "178656", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "This is an anomalous issue with iOS, as only standard views and windows should contain childrenm, by design. Closing as \"invalid\", but have raised TIMOB-7057 to address the parity issue.\r\n\r\nBy the way, your test case contained unnecessary code. Please see the test case in TIMOB-7057 for a better example.\r\n\r\nThanks\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-10T08:19:34.000+0000", "updated": "2012-01-10T08:19:34.000+0000" }, { "id": "178680", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "A ticket needs to prove the existence of a bug, for it to be accepted. I'm afraid that this does not, in its current form. Please kindly refer to the [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] guide to learn how tickets need to be filed. Please also remember to raise a [Q&A question|http://developer.appcelerator.com/questions/created] (and to allow time for people to respond) before opening a ticket.\r\n\r\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-10T09:27:40.000+0000", "updated": "2012-01-10T09:27:40.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }