{ "id": "116261", "key": "TIMOB-14311", "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": "15547", "description": "2013 Sprint 14", "name": "2013 Sprint 14", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "15548", "description": "2013 Sprint 14 API", "name": "2013 Sprint 14 API", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-11T21:52:00.000+0000", "created": "2013-06-20T17:49:12.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_views", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-11T12:18:53.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": "{code}\r\nvar win = Ti.UI.createWindow({\r\n\tfullscreen: false\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\tbottom: 20,\r\n\tcolor: 'white',\r\n\ttext: \"A label in the window\"\r\n});\r\nwin.add(label);\r\n\r\nvar v = Ti.UI.createView({\r\n\tbottom: 10,\r\n\theight: 100,\r\n\twidth: 100,\r\n\topacity: 0.5,\r\n\tbackgroundColor: 'blue'\r\n});\r\n\r\nvar b = Ti.UI.createButton({\r\n\ttop: 10,\r\n\ttitle: \"change view backgroundColor\"\r\n});\r\n\r\nb.addEventListener(\"click\", function(){\r\n\tv.backgroundColor = \"yellow\";\r\n});\r\n\r\nvar b1 = Ti.UI.createButton({\r\n\ttop: 110,\r\n\ttitle: \"remove view\"\r\n});\r\n\r\nb1.addEventListener(\"click\", function(){\r\n\twin.remove(v);\r\n});\r\n\r\nvar b2 = Ti.UI.createButton({\r\n\ttop: 210,\r\n\ttitle: \"add view\"\r\n});\r\n\r\nb2.addEventListener(\"click\", function(){\r\n\twin.add(v);\r\n});\r\n\r\nwin.add(b);\r\nwin.add(b1);\r\nwin.add(b2);\r\nwin.add(v);\r\nwin.open();\r\n{code}\r\nSteps to reproduce:\r\n1. Run the above code. Should see a translucent blue view on the screen.\r\n2. Click the button \"change view backgroundColor\".\r\nActual behavior: The view becomes opaque yellow. \r\nExpected behavior: The view becomes translucent yellow.\r\n\r\nNote: if click the button \"remove view\" and then \"add view\", we can see the view becomes translucent yellow.\r\n", "attachment": [], "flagged": false, "summary": "Android: View: opacity does not work when backgroundColor is changed", "creator": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "259447", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4418", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-26T00:00:24.000+0000", "updated": "2013-06-26T00:00:24.000+0000" }, { "id": "259863", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This bug only happens on 2.3 devices.\nFor FR, please run the test case on 2.3, 3.x and 4.x devices.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-27T19:03:56.000+0000", "updated": "2013-06-27T19:03:56.000+0000" }, { "id": "274778", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Opacity is working fine when backgorundColor is changed.\r\n\r\nVerified fix on:\r\nDevice : Google Nexus 7, Android Version: 4.3\r\nDevice: Samsung Galaxy Note, Android version: 2.3.6\r\nSDK: 3.2.0.v20131010163242\r\nCLI version : 3.2.0\r\nOS : MAC OSX 10.8.4\r\nAlloy : 1.2.2\r\nAppcelerator Studio, build: 3.2.0.201310092427\r\nXCode : 5", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-11T12:18:23.000+0000", "updated": "2013-10-11T12:18:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }