{ "id": "61901", "key": "TIMOB-1269", "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": "11226", "name": "Release 1.5.0 M01", "archived": true, "released": true, "releaseDate": "2010-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:42.000+0000", "created": "2011-04-15T02:48:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:42.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}

Splash Screen is the first that needs support and it needs to be\ndone in the Theme. Multi-D/R images are needed through out to\ngracefully handle apps running on many different devices.

{html}", "attachment": [], "flagged": false, "summary": "Android: Support Multi-Density and Multi-Resolution images", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125222", "author": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Some doc references:
\n\nhttp://developer.android.com/guide/practices/screens_support.html
\n\nhttp://developer.android.com/guide/topics/resources/providing-resou...

\n

For resource layout:

\n

res/drawable-ldpi/foo.png (for 120dpi)
\nres/drawable-mdpi/foo.png (for 160dpi -- default)
\nres/drawable-hdpi/foo.png (for 240dpi -- nexus 1, droid)

\n

In general it'll be most important to have native high-DPI\nimages (scaling down to low-res usually doesn't look as bad as\nscaling up to high-res).

\n

I'm not sure what the full implications for say loading things\ninto ImageViews would be, but it should be pretty straightforward\nfor the splash screen, since that's using native Android\nlayout/theme stuff. For now in StatusNet Mobile we're manually\nselecting high-res alternate images based on reported DPI, and\nletting the ImageViews \"scale\" them back to their native size from\nlogical coordinates.

\n

For developer-provided resources... could have 'android-hdpi',\netc subdirs in Resources alongside the 'iphone' and 'android' dirs,\nand have those copied into the correct res/whatev dirs ?

{html}", "updateAuthor": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:12.000+0000", "updated": "2011-04-15T02:48:12.000+0000" }, { "id": "125223", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Bill is actively working this ticket. We're still working\nthrough it. At the moment, images will going in\nandroid/images/[low|medium|high] and put put in the appropriate\nplace. Scaling hi density down to medium fails if there is a\ngradient in the high density image for a photo it's probably\nok.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:12.000+0000", "updated": "2011-04-15T02:48:12.000+0000" }, { "id": "125224", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [408f5ab0fe75dcd33b48e2d893a8dc6fd0236dc8])\n[#1269 state:fixed-in-qa] density-specific splash\nscreens now supported using our 'default.png' standard. Put the\ndifferent density versions i\nResources/android/images/high/default.png,\nResources/android/images/medium/default.png, etc. \nhttps://github.com/appcelerator/titanium_mobile/commit/408f5ab0fe75...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:48:13.000+0000", "updated": "2011-04-15T02:48:13.000+0000" }, { "id": "125225", "author": { "name": "daniel", "key": "daniel", "displayName": "Daniel", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

What about other images rather than splashscreen and icon? Such\nas some window or button background image, how would you target\ndevice with diff screen sizes and dpi?

\n

Thanks

{html}", "updateAuthor": { "name": "daniel", "key": "daniel", "displayName": "Daniel", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:13.000+0000", "updated": "2011-04-15T02:48:13.000+0000" }, { "id": "125226", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

@Daniel please use Q&A or Helpdesk for support. We do not\nprovide it from our ticketing system.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:13.000+0000", "updated": "2011-04-15T02:48:13.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }