开发者

in which folder put image for setting to background of layout android

开发者 https://www.devze.com 2023-04-13 09:11 出处:网络
i am putting the image in three of the drawable,drawable-hdpi and drawabl开发者_如何学编程e-ldpi for supporting all type of screen but when i see the output of background image in 240*320 screen resol

i am putting the image in three of the drawable,drawable-hdpi and drawabl开发者_如何学编程e-ldpi for supporting all type of screen but when i see the output of background image in 240*320 screen resolution the background image is not as clear as origional so my question is where to, means in which folder i put the background image for supporting it all type of screen size and density, maens then my image should not distorted or bluer...

i am using the background image of size:320*480

thanks


make one folder name

drawable-nodpi

put your image in that and use it and dont keep that image in other folders.

the image will not be scaled or stretched.

Anoher Way

the best way is to make 3 different size images and put int drawable-ldpi(240X320),drawable-mdpi(320X480),drawable-hdpi(480X800) folder with the same name.

TO LEARN MORE PLEASE VISIT THIS LINK. Supporting Multiple SCreens


You can put different same image in drawable-hdpi,mdpi and ldpi.Depending on the density of devices they will take the images from the corresponding folder.

With different devices you should have same image but with different size and density.for You can search in internet the specifications of devices.If density is less than 160 then put image in ldpi,if 160 then use mdpi and if 240 or above use hdpi.Also change the size of image to the screen size of corresponding device.Hope it will help.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号