{ "id": "63000", "key": "TIMOB-2368", "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": "11229", "name": "Release 1.5.0 M04", "archived": true, "released": true, "releaseDate": "2010-12-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:55.000+0000", "created": "2011-04-15T03:17:59.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "density", "icons", "tableview" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:55.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": "{html}

As per Don set to the m03 milestone. KS will be used for testing\nwhen implemented.

{html}", "attachment": [], "flagged": false, "summary": "Android - add density specific icons for tableView", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128299", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Now that we're supporting anyDensity=true we need to update our\ninternal graphics to get low, med, high versions.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:59.000+0000", "updated": "2011-04-15T03:17:59.000+0000" }, { "id": "128300", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Sent request to Tyrus for the different icons needed.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:59.000+0000", "updated": "2011-04-15T03:17:59.000+0000" }, { "id": "128301", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [b271a1770bba16d369ef76af8dc188d405d8b97a])\n[#2368 state:fixed-in-qa] added additional\ngraphics. Detect density first time a row is created and load the\nappropriate graphics \nhttps://github.com/appcelerator/titanium_mobile/commit/b271a1770bba...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:00.000+0000", "updated": "2011-04-15T03:18:00.000+0000" }, { "id": "128302", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Note: To test this, use a custom AndroidManifest.xml and set\nanyDensity to true. Then look at the Tableview | Basic test to\nverify that the icon size is the basically the same on low, medium,\nand high density displays.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:00.000+0000", "updated": "2011-04-15T03:18:00.000+0000" }, { "id": "128303", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Re-opening. Fails now in anyDensity:false mode because the\nDisplayMetrics class doesn't inform us of the true scaling factor.\nUsing this code fragment from Marshall's \nblog post to get the applicationScale factor so I can do the\nright thing.

\n
\n// Note: this isn't public API, so there should be lots of error checking here\nMethod gciMethod = Resources.class.getMethod(\"getCompatibilityInfo\");\nObject compatInfo = gciMethod.invoke(view.getResources());\nfloat appScale = (Float)compatInfo.getClass().getField(\"applicationScale\").get(compatInfo);\n
{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:00.000+0000", "updated": "2011-04-15T03:18:00.000+0000" }, { "id": "128304", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [70786451197cc69b6af39ae823aba6b133aeb67a])\n[#2368 state:fixed-in-qa] Reworked to deal with\nanyDensity false and true. To test this you will need to compile KS\nwith anyDensity both true and false and verify both states on a\nmedium device (G1/ION) and high density device (N1, etc) \nhttps://github.com/appcelerator/titanium_mobile/commit/70786451197c...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:00.000+0000", "updated": "2011-04-15T03:18:00.000+0000" }, { "id": "128305", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

G1 (1.6) on/off, G2 (2.2) on/off - Titanium SDK version: 1.5.0\n(12/10/10 09:14 0c31e15) icons looked the same in all cases

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:01.000+0000", "updated": "2011-04-15T03:18:01.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }