{ "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\n

Workaround 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\n

Ticket here: http://developer.appcelerator.com/helpdesk/view/66071#c320941

\r\n

Code 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
{html}", "attachment": [], "flagged": false, "summary": "Android: backgroundSelectColor on row are not being recognized when a button is present", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "194747", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on a Samsung Galaxy S2 (2.3.6), and the issue still exists.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-14T15:45:14.000+0000", "updated": "2012-05-14T15:45:14.000+0000" }, { "id": "195096", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Jira bug review - still reproducible on 2.1 CI", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-16T15:47:02.000+0000", "updated": "2012-05-16T15:47:02.000+0000" }, { "id": "216899", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120828153312, issue still valid. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-29T14:40:47.000+0000", "updated": "2012-08-29T14:40:47.000+0000" }, { "id": "439789", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Occurs on : \r\n\r\nSDK : 7.3.0.v20180803101103\r\nCLI : 7.0.4\r\nAndroid Emulator OS 6.0 ", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-03T20:22:27.000+0000", "updated": "2018-08-03T20:22:27.000+0000" }, { "id": "453542", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. Updating, or creating code may not reproduce the issue reported, or be a valid test case.\r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T18:50:16.000+0000", "updated": "2020-01-09T18:50:16.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }