You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: