{ "id": "63584", "key": "TIMOB-2952", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T18:50:16.000+0000", "created": "2011-04-15T03:33:37.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T18:50:16.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": "{html}
Tested with 1.6 SDK (Build from today - 1-26). Tested on an\r\nAndroid device running 2.2
\r\nWorkaround is to create a view, apply backgroundSelectedColor to\r\nthe view, add all row elements to the view. This works fine. It\r\ndoesn't work if the button is the immediate child of the row.
\r\nTicket here: http://developer.appcelerator.com/helpdesk/view/66071#c320941
\r\nCode to reproduce:
\r\n\r\n\r\nvar mywin = Titanium.UI.createWindow({\r\n title: 'Test',\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar mycolls = [];\r\n\r\nfor (var i = 0; i < 6; ++i) {\r\n\r\n var row = Ti.UI.createTableViewRow({\r\n height: 40,\r\n backgroundSelectedColor: '#AA0000'\r\n });\r\n\r\n var icost = Ti.UI.createButton({\r\n title: '$20',\r\n top: 18,\r\n right: 10,\r\n width: 60,\r\n height: 20,\r\n font: {\r\n fontSize: 12,\r\n fontFamily: 'Helvetica Neue'\r\n }\r\n });\r\n row.add(icost);\r\n\r\n mycolls.push(row);\r\n}\r\n\r\nvar tview = Ti.UI.createTableView({\r\n data: mycolls\r\n});\r\ntview.addEventListener('click',\r\nfunction(e) {\r\n Ti.API.info('**EVENT**:' + ' index=' + e.index + ', row=' + e.row + ', type=' + e.type +\r\n ', src=' + e.source);\r\n});\r\n\r\nmywin.add(tview);\r\n\r\nmywin.open();
\r\n