{ "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.
Now that we're supporting anyDensity=true we need to update our\ninternal graphics to get low, med, high versions.
Sent request to Tyrus for the different icons needed.
(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...
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.
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
(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...
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