{ "id": "61977", "key": "TIMOB-1345", "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": [ { "id": "15079", "description": "2013 Sprint 02 API", "name": "2013 Sprint 02 API", "archived": true, "released": true, "releaseDate": "2013-01-28" }, { "id": "14812", "description": "2013 Sprint 02", "name": "2013 Sprint 02", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-01-17T00:28:39.000+0000", "created": "2011-04-15T02:49:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "ipass1" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-28T21:00:57.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}

When a label is added to a TableViewRow and the row is\r\nhighlighted, the color of the label text is not affected on\r\nAndroid

{html}", "attachment": [], "flagged": false, "summary": "Android: TableViewRow Labels selected text color", "creator": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "125399", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

And the row highlight color will not \"show through\" above the\nlabel backgroundColor, if any. To put another way: any label in the\nrow \"blocks\" the highlight of the entire row.

\n

Sample:

\n
\nvar win = Ti.UI.currentWindow;\nvar rows = [];\nfor (var i = 0; i < 4; i++) {\n    var tr = Ti.UI.createTableViewRow({height: 70});\n    var l = Ti.UI.createLabel({\n        backgroundColor: 'gray', \n        text: 'Label ' + i + \" xxxxxxxxxxxxxxxxxxxxxx\", \n        top: 0, \n        bottom: 0, \n        left: 10, \n        right: 10 });\n    tr.add(l);\n    rows.push(tr);\n}\nvar tv = Ti.UI.createTableView({\n    data: rows\n});\nwin.add(tv);\n
\n

Short video of behavior (iPhone on the left):
\nhttp://www.screencast.com/t/ZTc5MzU3MTAt

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:49:59.000+0000", "updated": "2011-04-15T02:49:59.000+0000" }, { "id": "214481", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120814103312, seems like the issue still is still present. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-14T16:21:42.000+0000", "updated": "2012-08-14T16:21:42.000+0000" }, { "id": "222417", "author": { "name": "acebone", "key": "acebone", "displayName": "Esben Maaløe", "active": true, "timeZone": "Europe/Berlin" }, "body": "tested on TiSDK 2.1.3 w/ emulator and various devices,\r\nthe issue is still present", "updateAuthor": { "name": "acebone", "key": "acebone", "displayName": "Esben Maaløe", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-07T10:20:25.000+0000", "updated": "2012-10-07T10:20:25.000+0000" }, { "id": "222419", "author": { "name": "acebone", "key": "acebone", "displayName": "Esben Maaløe", "active": true, "timeZone": "Europe/Berlin" }, "body": "DELETED", "updateAuthor": { "name": "acebone", "key": "acebone", "displayName": "Esben Maaløe", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-07T12:00:56.000+0000", "updated": "2012-10-07T12:01:11.000+0000" }, { "id": "234695", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with a native android project. The behavior described in this ticket is actually a native android behavior, not a Titanium bug. In android, \n1) if the label is clickable, the table view row won't be highlighted when the label is clicked; \n2) the label will be highlighted when the table view row is clicked. But the highlight color of the label is decided by the background selected color or background color of the label.\nTherefore, developers can get different highlight behaviors by setting the \"backgroundSelectedColor\" and \"touchEnabled\" properties to proper values. Here is an example. Click inside and outside the labels to see the different behaviors.\n{code}\nvar win = Ti.UI.createWindow({\n\tbackgroundColor : \"white\"\n});\n\nvar r1 = Ti.UI.createTableViewRow({\n\ttitle : \"Old-style row\"\n});\n\nvar r2 = Ti.UI.createTableViewRow({\n\theight : 70\n});\nvar l2 = Ti.UI.createLabel({\n\tbackgroundColor : 'gray',\n\tbackgroundSelectedColor : 'transparent',\n\ttext : 'Label: backgroundSelectedColor=transparent',\n\ttop : 0,\n\tbottom : 0,\n\tleft : 10\n});\nr2.add(l2);\n\nvar r3 = Ti.UI.createTableViewRow({\n\theight : 70\n});\nvar l3 = Ti.UI.createLabel({\n\tbackgroundColor : 'gray',\n\ttouchEnabled: false,\n\ttext : 'Label: touchEnabled=false',\n\ttop : 0,\n\tbottom : 0,\n\tleft : 10\n});\nr3.add(l3);\n\nvar tv = Ti.UI.createTableView({\n\tdata : [r1, r2, r3]\n});\nwin.add(tv);\n\nwin.open();\n\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T00:27:42.000+0000", "updated": "2013-01-17T00:27:42.000+0000" }, { "id": "416052", "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-28T21:00:57.000+0000", "updated": "2017-03-28T21:00:57.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }