{ "id": "108072", "key": "TIMOB-12561", "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": "2013-01-17T19:45:14.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "exalture", "parity", "reprod" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "28187", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "113495", "key": "AC-1968", "fields": { "summary": "Android: Label highlightedColor property has not effect", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:56.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": "h2. Problem\r\nHighlightedColor property on android does not function similar to iOS implementation. This functionality should be native in android as well, as can be seen in the native settings app. When a row is pressed, the text color changes.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'black'\r\n});\r\n\r\nwin.open();\r\n\r\nvar rows = [];\r\nfor (var i = 0; i < 4; i++) {\r\n var tr = Ti.UI.createTableViewRow({height: 70});\r\n var l = Ti.UI.createLabel({\r\n highlightedColor: 'red',\r\n text: 'Label ' + i + \" xxxxxxxxxxxxxxxxxxxxxx\", \r\n top: 0, \r\n bottom: 0, \r\n left: 10, \r\n right: 10 });\r\n tr.add(l);\r\n rows.push(tr);\r\n}\r\nvar tv = Ti.UI.createTableView({\r\n data: rows\r\n});\r\nwin.add(tv);\r\n{code}\r\n", "attachment": [ { "id": "34828", "filename": "Screen Shot 2013-01-17 at 10.39.05 PM.png", "author": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-17T19:45:14.000+0000", "size": 119090, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Label highlightedColor does not work", "creator": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "environment": "Ti SDK 3.1.0.GA\r\niOS 6\r\nAndroid 2.x & 4.x", "comment": { "comments": [ { "id": "240454", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem can reproduce with version 3.0.2 and master release 3.1.0\n\nTested on:\nTitanium Studio, build: 2.1.2.201208301612\nTitanium SDK version: 3.1.0 (02/03/2013)\nTitanium SDK version: 3.0.2 (02/03/2013)\nDevice: Samsung galaxy s duos Android version: 4.0.4\n\nIt works fine on ios as expected.", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-02T11:21:30.000+0000", "updated": "2013-03-02T11:21:30.000+0000" }, { "id": "244816", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "In Android row highlight is not done through control highlightedcolor. Use the 'backgroundSelectedColor' property of the row to set this. You may also want to set 'touchEnabled' to false on the label so that the highlight works even touching on the label.\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-31T17:33:10.000+0000", "updated": "2013-03-31T17:33:10.000+0000" }, { "id": "244878", "author": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "body": "backgoundSelectedColor changes the BACKGROUND color, not the text.\r\nthe proposed solution has nothing to do with the original ticket which is to change the TEXT color when the row or view is clicked.\r\n\r\nI guess ticket won't be looked at further since it's been resolved :(", "updateAuthor": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "created": "2013-04-01T13:43:01.000+0000", "updated": "2013-04-01T13:43:45.000+0000" }, { "id": "423936", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-11T18:16:17.000+0000", "updated": "2017-07-11T18:16:17.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }