Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2470] Android: allow high-density-only resource overrides

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-08-23T14:11:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, custom, density, platform, resources
ReporterMatthew Lieder
AssigneeNeeraj Gupta
Created2011-04-15T03:20:39.000+0000
Updated2017-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.

Comments

  1. Junaid Younus 2012-08-23

    No sample project attached, unable to reproduce, ticket marked as invalid.
  2. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source