Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong values when inserted in 'xxhdpi' field #8

Open
dsdebastiani opened this issue Jul 15, 2015 · 1 comment
Open

Wrong values when inserted in 'xxhdpi' field #8

dsdebastiani opened this issue Jul 15, 2015 · 1 comment

Comments

@dsdebastiani
Copy link

When a value is inserted in xxhdpi filed, the other values are wrong calculated.

If you put 288 in the xxhdpi filed, for instance, this value is copied to xhdpi filed and other values are calculated based on it. The 288dp in xxhdpi must correspond to 96dp in mdpi. But, the calculated value is 144dp.

However, if you put 96dp in mdpi, the correct values are inserted in others fields.

@dsdebastiani
Copy link
Author

Probably the error is in line 38 in Calculator:

case Dpi.XXHDPI:
        mdpi = originalSize / DpiRatio.RATIO_XHDPI;

Should not be?:

case Dpi.XXHDPI:
        mdpi = originalSize / DpiRatio.RATIO_XXHDPI;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant