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 WebImageView default density #44

Open
gradha opened this issue Jul 11, 2011 · 0 comments
Open

Wrong WebImageView default density #44

gradha opened this issue Jul 11, 2011 · 0 comments

Comments

@gradha
Copy link

gradha commented Jul 11, 2011

When using the WebImageView on devices with higher display density than medium (also affects emulators) the images shown are scaled incorrectly. The problem is in BitmapFactory.decodeByteArray setting the device's density on the returned bitmaps. When I modify this to force the default density (medium) on the Bitmaps, everything works like on medium density devices. Here is a Grid/Gallery using WebImageViews without modification and after the forced density change: https://www.dropbox.com/gallery/145894/1/droid-fu-density?h=7894c8

gradha pushed a commit to gradha/droid-fu that referenced this issue Jul 11, 2011
If the density is not specified it seems to default to that of the
device, which causes weird scaling when using the WebImageView inside
Grid/Gallery widgets.
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