{ "id": "65378", "key": "TIMOB-4104", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11364", "description": "Mobile 1.8.0 M11", "name": "Sprint 2011-32", "archived": true, "released": true, "releaseDate": "2011-08-15" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-08-29T10:32:50.000+0000", "created": "2011-05-16T09:41:02.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_window", "qe-testadded" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-02T09:14: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": "h1. The Problem\nIf your window uses images with gradients, the gradients can appear very blocky.\n\nh2. The Solution\nExpose the \"setFormat\" method of a native Android window, and allow it to be set to PixelFormat.RGBA_8888 or PixelFormat.OPAQUE [default].\n\nh2. For More Information\nYou can read more about the problem and solution here:\nhttp://stuffthathappens.com/blog/2010/06/04/android-color-banding/\n\nh2. Associated Helpdesk Ticket\nhttp://appc.me/c/QZP-88323-317", "attachment": [ { "id": "22559", "filename": "gradient.png", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-14T13:09:01.000+0000", "size": 28523, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Expose Window Pixel Format", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "162771", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You'll need the gradient.png to test it.\r\n\r\n{code:title=app.js}\r\nvar w = Ti.UI.createWindow({\r\n\tnavBarHidden: false,\r\n\texitOnClose: true,\r\n\tbackgroundImage: 'gradient.png',\r\n\twindowPixelFormat: Ti.UI.Android.PIXEL_FORMAT_RGB_565\r\n});\r\n\r\nvar v = Ti.UI.createImageView({\r\n\timage: \"KS_nav_ui.png\"\r\n});\r\n\r\nvar b1 = Ti.UI.createButton({\r\n\ttitle: \"RGB_565\",\r\n\tbottom: 10,\r\n\tleft: 10,\r\n\twidth: 100,\r\n\theight: 'auto'\r\n});\r\nb1.addEventListener('click', function() {\r\n\tw.windowPixelFormat = Ti.UI.Android.PIXEL_FORMAT_RGB_565;\r\n});\r\n\r\nvar b2 = Ti.UI.createButton({\r\n\ttitle: \"RGBA_8888\",\r\n\tbottom: 10,\r\n\tright: 10,\r\n\twidth: 100,\r\n\theight: 'auto'\r\n});\r\nb2.addEventListener('click', function() {\r\n\tw.setWindowPixelFormat(Ti.UI.Android.PIXEL_FORMAT_RGBA_8888);\r\n});\r\n\r\nw.add(v);\r\nw.add(b1);\r\nw.add(b2);\r\nw.open();\r\n{code}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-14T13:08:25.000+0000", "updated": "2011-08-14T13:08:25.000+0000" }, { "id": "182527", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 1.0.8.201201262211\r\nTi Mob SDK 1.9.0.v20120207171634\r\nOSX Lion 10.7.3\r\nNexus S OS 2.3.6\r\n\r\nVerified expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-08T18:38:28.000+0000", "updated": "2012-02-08T18:38:28.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }