Issue
I am developing an app for all the available screen resolutions. My approach is to create different drawable
folders and to keep respective images in them. Everything was going fine before I found a clash between two devices of different resolutions. Devices are of 480*800
and 600*1024
resolution. But according to their pixel density they are accessing same drawable
folder drawable-hdpi
(which is also according to given specification in this image below).
My problem is that images in this folder are perfect for one device and not for other. It means if I keep images for 600*1024
, they are overlapping in other device 480*800
and all that. I have tried renaming the folder to other possible names but couldn't succeed. Please help me on how can I handle this situation. Hope I have described my situation clearly...
Solution
Hi you can put your all Images in drawable folder and then you create a layout folders like this
Layout-small
Layout-large
Layout-xlarge
So that you can access all the images from same drawable folder and while you run your app it automatically creates drawable folders in bin according to their sizes so that no conflicts & overlaps occurs . So check this way .............
Answered By - androidgeek
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.