Issue
I have a background image defined in res/drawable-hdpi, and it looks fine on all phones, it's a standard 480x800 image that scales well for other screens with similar aspect ratio. The image of course fits pixel-perfect on 480x800 phone.
Now I've bought a 7" tablet that also has 480x800 screen, but is a large screen. Although the image itself IS 480x800 and tablet has the same resolution, the image looks like it was downscaled to smaller size and then upscaled again.
I have a temporary solution that works - to place the same image into res/drawable-large folder, which works, but I have the same image twice in my project which I think is unnecessary.
I suspect it has to do with the image being in res/drawable-hdpi, and because the tablet is MDPI, it did some scaling down and scaling up, but I'd like to avoid this and do it properly, so I can use the same drawable in one folder, and it will work correctly on phones and tablets.
Solution
you can put that particular image in "drawable" folder.
Answered By - Abhay Kumar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.