{ "id": "88665", "key": "TIMOB-8260", "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": "2012-03-23T19:16:42.000+0000", "created": "2012-03-23T16:18:47.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:21:36.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" } ], "description": "If we add imageView or view to the button, then the imageView doesn't show. It works in iOS, I can view an imageView or View added to the button.\r\nh4. Repro Steps\r\n1. Run the below code in the app.js\r\n2. After running the application, you can only see the button without an imageView or view added to the it. \r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: \"red\"\r\n});\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'Button',\r\n\tcolor: 'white'\r\n});\r\nvar button = Ti.UI.createButton({\r\n\ttitle:'Click',\r\n\theight:100,\r\n\twidth: 100,\r\n\ttextAlign: 'left'\r\n});\r\n\r\nvar image = Titanium.UI.createImageView({ \r\n\tbackgroundImage:'KS_nav_ui.png', \r\n\tbackgroundColor:'black',\r\n top:10, \r\n left:47, \r\n height:50, \r\n width:50,\r\n touchEnabled: false \r\n});\r\nbutton.add(image);\r\nwin.add(button);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: imageView or View doesn't show when added to button", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android 2.2.2\r\nLG Optimus V\r\nTi SDK 1.8.1, 1.8.2, 2.0.x CI build", "comment": { "comments": [ { "id": "188423", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not sure if we support adding views to buttons on Android.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-23T16:47:28.000+0000", "updated": "2012-03-23T16:47:28.000+0000" }, { "id": "188486", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We do not allow views to be added to button on Android platform.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T19:13:06.000+0000", "updated": "2012-03-24T19:13:06.000+0000" }, { "id": "410995", "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-09T23:21:36.000+0000", "updated": "2017-03-09T23:21:36.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }