[TIMOB-2470] Android: allow high-density-only resource overrides
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-08-23T14:11:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, custom, density, platform, resources |
Reporter | Matthew Lieder |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:20:39.000+0000 |
Updated | 2017-03-24T18:19:29.000+0000 |
Description
This is best explained by example. Say I have an app with the following resource, sized for a 320x480 screen:
images/header.png
Both my iPhone and Android builds pull it in fine. When I want to use a higher-res version for the iPhone 4, I add the following:
images/header@2x.png
That works fine too. Now I want to pull in a higher-res version for the Android, so I add the following (using the latest SDK from master):
android/images/high/header.png
Doesn't work! I then copy images/header.png to:
android/images/medium/header.png
And the high-res one shows up now. Ideally I don't want the low-res header.png duplicated in two spots, so it would be great if having that image also in /medium wouldn't be required.
No sample project attached, unable to reproduce, ticket marked as invalid.
Closing ticket as invalid with reference to the above comments.