I was encountering a very bizarre error where images were all being displayed larger than actual pixelxpixel size.
Finally I figured out it was because anything placed in /drawable directory gets scaled automatically by the density value!
So the fix are as follows:
- Use drawable-ldpi, -mdpi, -hdpi directories for drawables instead!
- Use BitmapFactory.Options(); options.inScaled = false;
- Place any assets that should not be scaled in drawable-nodpi
No comments:
Post a Comment