[TIMOB-2368] Android - add density specific icons for tableView
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:58:55.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.5.0 M04 |
| Components | Android |
| Labels | android, defect, density, icons, tableview |
| Reporter | Thomas Huelbert |
| Assignee | Don Thorp |
| Created | 2011-04-15T03:17:59.000+0000 |
| Updated | 2011-04-17T01:58:55.000+0000 |
Description
As per Don set to the m03 milestone. KS will be used for testing when implemented.
Now that we're supporting anyDensity=true we need to update our internal graphics to get low, med, high versions.
Sent request to Tyrus for the different icons needed.
(from [b271a1770bba16d369ef76af8dc188d405d8b97a]) [#2368 state:fixed-in-qa] added additional graphics. Detect density first time a row is created and load the appropriate graphics https://github.com/appcelerator/titanium_mobile/commit/b271a1770bba16d369ef76af8dc188d405d8b97a"> https://github.com/appcelerator/titanium_mobile/commit/b271a1770bba...
Note: To test this, use a custom AndroidManifest.xml and set anyDensity to true. Then look at the Tableview | Basic test to verify that the icon size is the basically the same on low, medium, and high density displays.
Re-opening. Fails now in anyDensity:false mode because the DisplayMetrics class doesn't inform us of the true scaling factor. Using this code fragment from Marshall's http://www.arcaner.com/2010/07/20/querying-applicationscale-in-android/"> blog post to get the applicationScale factor so I can do the right thing.
(from [70786451197cc69b6af39ae823aba6b133aeb67a]) [#2368 state:fixed-in-qa] Reworked to deal with anyDensity false and true. To test this you will need to compile KS with anyDensity both true and false and verify both states on a medium device (G1/ION) and high density device (N1, etc) https://github.com/appcelerator/titanium_mobile/commit/70786451197cc69b6af39ae823aba6b133aeb67a"> https://github.com/appcelerator/titanium_mobile/commit/70786451197c...
G1 (1.6) on/off, G2 (2.2) on/off - Titanium SDK version: 1.5.0 (12/10/10 09:14 0c31e15) icons looked the same in all cases