{ "id": "77750", "key": "TIMOB-4648", "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": "11361", "description": "Mobile 1.8.0 M08", "name": "Sprint 2011-29", "archived": true, "released": true, "releaseDate": "2011-07-25" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-04T15:25:16.000+0000", "created": "2011-07-13T09:06:40.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_tableviewrow", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-04T15:25: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": "Using this test app:\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'green',\r\n\texitOnClose: true\r\n});\r\n\r\nvar cb, btn;\r\nvar tv = null;\r\nwin.add(cb = Ti.UI.createSwitch({\r\n\tvalue: true,\r\n\tstyle: Ti.UI.Android.SWITCH_STYLE_CHECKBOX,\r\n\ttitle: \"Give one row backgroundSelectedColor\",\r\n\ttop: \"5dp\", left: \"5dp\", right: \"5dp\", height: \"60dp\"\r\n}));\r\nwin.add(btn = Ti.UI.createButton({\r\n\ttitle: \"Create TableView\",\r\n\ttop: \"65dp\", left: \"5dp\", width: \"200dp\", height: \"40dp\"\r\n}));\r\nbtn.addEventListener('click', function(e) {\r\n\tif (tv !== null) {\r\n\t\twin.remove(tv);\r\n\t}\r\n\twin.add(tv = Ti.UI.createTableView({\r\n\t\ttop: \"110dp\", left: \"0dp\", right: \"0dp\", bottom: \"0dp\",\r\n\t\tbackgroundColor: \"blue\", opacity: 0.8\r\n\t}));\r\n\r\n\r\n\tvar rows = [];\r\n\tfor (var i = 0; i < 10; i++) {\r\n\t\tvar row = Ti.UI.createTableViewRow();\r\n\t\trow.title = \"Row \" + (i + 1);\r\n\t\tif (i === 4) {\r\n\t\t\trow.title = \"Evil row\";\r\n\t\t\trow.backgroundColor = \"yellow\";\r\n\t\t\tif (cb.value) {\r\n\t\t\t\trow.backgroundSelectedColor = \"red\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (i === 5) {\r\n\t\t\trow.title = \"With opacity\";\r\n\t\t\trow.backgroundColor = \"yellow\";\r\n\t\t\trow.opacity=0.8;\r\n\t\t\tif (cb.value) {\r\n\t\t\t\trow.backgroundSelectedColor = \"red\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (i === 8) {\r\n\t\t\t// Just testing standard background\r\n\t\t\trow.backgroundColor = \"yellow\";\r\n\t\t\trow.title = \"I am yellow\";\r\n\t\t}\r\n\t\trows.push(row);\r\n\t}\r\n\ttv.setData(rows);\r\n});\r\n\r\n\r\nwin.open();\r\n{code}\r\n\r\nIf you UNcheck the top checkbox and create the tableview, you'll see that \"Evil Row\" and \"With Opacity\" row look different because the \"With Opacity\" row has an opacity of 0.8 set on it.\r\n\r\nIf you then check the top checkbox and do it again, the two rows will look the same, when they should NOT look the same (since one of them has 0.8 opacity set.)", "attachment": [], "flagged": false, "summary": "Android: TableViewRow opacity ignored when a backgroundSelectedColor is also set", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "HTC Desire 2.2", "comment": { "comments": [ { "id": "165868", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved.\n\nTested On:\nMac OSX Lion\nTiMob: 1.8.0.v20110906155354\nTiStud: 1.0.5.201109091616\n\nDevices Used:\nAndroid Emulator 2.2\nDroid1\nDroid3", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-13T12:20:56.000+0000", "updated": "2011-09-13T12:20:56.000+0000" }, { "id": "175360", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "updating fixed version for merge", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-12-08T08:07:12.000+0000", "updated": "2011-12-08T08:07:12.000+0000" }, { "id": "175561", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Ti Studio 1.0.7.201112080131\r\n
Ti Mob SDK 1.8.0.1.v20111209011840\r\n
OSX Lion\r\nNexus S OS 2.3.6\r\n\r\nExpected behavior is shown of the opacity being correctly set", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-09T11:24:04.000+0000", "updated": "2011-12-09T11:24:04.000+0000" }, { "id": "178032", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T15:24:43.000+0000", "updated": "2012-01-04T15:24:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }