{ "id": "100701", "key": "TIMOB-10824", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-28T06:35:12.000+0000", "created": "2012-09-10T12:17:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_window", "qe-testadded", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20692", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "92312", "key": "TIDOC-648", "fields": { "summary": "APIDoc: Document interaction of backgroundImage, backgroundColor, and windowPixelFormat on Android", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "20693", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "78262", "key": "TIMOB-4800", "fields": { "summary": "Ti.UI.backgroundColor/Ti.UI.backgroundImage not translucent", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-01T09:39:39.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": "When compositing the backgroundColor and backgroundImage, it works fine with lightweight windows but not with heavyweight windows (unless a view is added specifying the two params). See code samples below. For the heavyweight window, it is ignoring the backgroundColor. Also, setting windowPixelFormat: Ti.UI.Android.PIXEL_FORMAT_TRANSLUCENT has not effect. Might be related to TIMOB-4800.\r\n\r\n\r\n\r\nNOT WORKING:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'orange',\r\n backgroundImage: 'KS_nav_views.png',\r\n modal: false,\r\n});\r\nwin.open();\r\n{code}\r\n\r\n\r\nBOTH OF THESE WORK:\r\n1. LIGHTWEIGHT:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'orange',\r\n backgroundImage: 'KS_nav_views.png',\r\n});\r\nwin.open();\r\n{code}\r\n\r\n2. HEAVYWEIGHT W/ VIEW:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n modal: false,\r\n});\r\nvar view = Ti.UI.createView ({\r\n backgroundColor: 'orange',\r\n backgroundImage: 'KS_nav_views.png',\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: backgroundColor/backgroundImage/backgroundRepeat compositing not working with heavyweight windows", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [ { "id": "108669", "key": "TIMOB-12456", "fields": { "summary": "Backport to 3_0_X: TIMOB-10824", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } ], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Mobile 2.1.1.GA\r\nTitanium Mobile 2.1.4.GA\r\nTitanium Mobile 3.0.0.v20121026170116\r\nMac OS X v 10.7.5\r\nTested on emulator with Android v2.2 / API Level 8\r\n", "comment": { "comments": [ { "id": "224352", "author": { "name": "madprgmr", "key": "madprgmr", "displayName": "Sean Hussey", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "madprgmr", "key": "madprgmr", "displayName": "Sean Hussey", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-18T22:45:57.000+0000", "updated": "2012-10-18T22:48:21.000+0000" }, { "id": "227116", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "The problem is also extended to backgroundRepeat: if the window is heavyweight (modal, fullscreen etc.), the image takes the whole screen even if backgroundRepeat is set to true. I confirm the other behaviors, also with 2.1.4.GA and 3.0.0.", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-11-13T11:26:35.000+0000", "updated": "2012-11-13T11:26:35.000+0000" }, { "id": "235614", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's a duplicate of TIMOB-11269 which has been already fixed in 3.0.2 and 3.1.0.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-23T23:04:34.000+0000", "updated": "2013-01-23T23:06:04.000+0000" }, { "id": "235745", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is not a duplicate of TIMOB-11269. Reopening", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T18:58:50.000+0000", "updated": "2013-01-24T18:58:50.000+0000" }, { "id": "235754", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending \r\nhttps://github.com/appcelerator/titanium_mobile/pull/3776", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T20:14:33.000+0000", "updated": "2013-01-24T20:14:33.000+0000" }, { "id": "235813", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Code\n{code}\nvar win = Ti.UI.createWindow({\n modal: false,\n exitOnClose:true\n});\n\nvar btn1 = Ti.UI.createButton({\n\ttop:10,\n\ttitle:'TOGGLE BGIMAGE'\n})\nvar btn2 = Ti.UI.createButton({\n\t\n\ttitle:'TOGGLE BGCOLOR'\n})\nvar btn3 = Ti.UI.createButton({\n\tbottom:10,\n\ttitle:'TOGGLE BGREPEAT'\n})\n\nwin.add(btn1);\nwin.add(btn2);\nwin.add(btn3);\n\nwin.open();\n\nvar hasImage = false;\nvar hasColor = false;\nvar hasRepeat = false;\n\nbtn1.addEventListener('click',function(){\n\tif(hasImage == false) {\n\t\twin.backgroundImage = 'KS_nav_views.png';\n\t}\n\telse {\n\t\twin.backgroundImage = null;\n\t}\n\thasImage = !hasImage;\n})\nbtn2.addEventListener('click',function(){\n\tif(hasColor == false) {\n\t\twin.backgroundColor = 'orange';\n\t}\n\telse {\n\t\twin.backgroundColor = null;\n\t}\n\thasColor = !hasColor;\n})\nbtn3.addEventListener('click',function(){\n\thasRepeat = !hasRepeat;\n\twin.backgroundRepeat = hasRepeat;\n})\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T23:37:26.000+0000", "updated": "2013-01-24T23:37:26.000+0000" }, { "id": "236233", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport PR https://github.com/appcelerator/titanium_mobile/pull/3804", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-28T17:52:35.000+0000", "updated": "2013-01-28T17:52:35.000+0000" }, { "id": "236315", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "KS needs to update based on this fix.\nKS PR for master: https://github.com/appcelerator-developer-relations/KitchenSink/pull/85\nKS PR for 3_0_X: https://github.com/appcelerator-developer-relations/KitchenSink/pull/86", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-28T22:03:56.000+0000", "updated": "2013-01-28T22:03:56.000+0000" }, { "id": "236403", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is now compositing the mentioned properties.\r\nEnvironment used for verification -\r\nTitanium SDK: 3.0.2.v20130128174806\r\nTitanium  Studio: 3.0.2.201301251115\r\nDevice : Samung GALAXY Tab 620\tAndroid 3.2 and Samsung GALAXY Note\tAndroid 2.3.6\r\nMachine OS : MAC 10.8", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-29T09:00:51.000+0000", "updated": "2013-01-29T09:00:51.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }