{ "id": "81743", "key": "TIMOB-5799", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-13T01:50:13.000+0000", "created": "2011-10-19T12:37:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "api", "defect", "module_views", "qe-testadded" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" } ], "issuelinks": [ { "id": "30071", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "116859", "key": "TIMOB-14482", "fields": { "summary": "Android: Heavyweight window: child view does not respect the opacity of the window", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19559", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "98188", "key": "DE-142", "fields": { "summary": "Kitchensink: ScrollableViews - Required buttons are not displayed on the view.", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-03T18:07:14.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": "h3. Original test case.\r\nA child element attached to a parent with an opacity of 0 is still visible, but should be hidden.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\ttitle: \"Window\",\r\n\tbackgroundColor: \"#FFF\"\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\twidth: 50,\r\n\theight: 50,\r\n\tleft: 0,\r\n\ttop: 0,\r\n\tbackgroundColor: \"transparent\",\r\n\topacity: 0\r\n});\r\n\r\nvar img = Ti.UI.createImageView({\r\n\timage: \"KS_nav_ui.png\",\r\n\twidth: 40,\r\n\theight: 40,\r\n\tleft: 0,\r\n\ttop: 0\r\n});\r\n\r\nview.add(img);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nh3. Child and Parent View w/ sliders to control opacity.\r\n\r\nTry adjusting the opacity of the parent and child views.\r\nThe child's opacity should be properly composited with that of the\r\nparent. As you lower the opacity of the parent, the child should also\r\nbecome more transparent. But if you only lower the child's opacity, the\r\nparent should not be affected.\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tlayout: 'vertical',\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar parent = Ti.UI.createView({\r\n\tbackgroundColor: \"blue\",\r\n\twidth: 200, height: 200\r\n});\r\nwin.add(parent);\r\n\r\nvar child = Ti.UI.createView({\r\n\tbackgroundColor: \"black\",\r\n\twidth: '50%', height: '50%'\r\n});\r\nparent.add(child);\r\n\r\nfunction createOpacitySlider(title, view) {\r\n\tvar container = Ti.UI.createView({\r\n\t\twidth: '75%', height: 75,\r\n\t\tlayout: 'horizontal'\r\n\t});\r\n\r\n\tcontainer.add(Ti.UI.createLabel({\r\n\t\ttext: title,\r\n\t\tleft: 5\r\n\t}));\r\n\r\n\tvar slider = Ti.UI.createSlider({\r\n\t\tmin: 0, max: 100,\r\n\t\tvalue: 100\r\n\t});\r\n\tcontainer.add(slider);\r\n\r\n\tslider.addEventListener('change', function(e) {\r\n\t\tview.opacity = e.value / 100;\r\n\t});\r\n\r\n\treturn container;\r\n}\r\n\r\nwin.add(createOpacitySlider('Parent', parent));\r\nwin.add(createOpacitySlider('Child', child));\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Child element does not respect opacity of parent", "creator": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "environment": "Android 2.3.3\r\nTi SDK 1.7.3 / CI", "comment": { "comments": [ { "id": "192284", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sent [PR #2051|https://github.com/appcelerator/titanium_mobile/pull/2051] to address this issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T13:29:48.000+0000", "updated": "2012-04-23T13:29:48.000+0000" }, { "id": "199956", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified with:\r\nTitanium Studio, build: 2.1.0.201206221045\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice: Samsung Galaxy tab (3.2)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T15:50:06.000+0000", "updated": "2012-06-23T15:50:06.000+0000" }, { "id": "203100", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-13T01:49:40.000+0000", "updated": "2012-07-13T01:49:40.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }