I have question regarding Android Layouts.I have read the documentation of Layouts .My question is that while developing lets say if the images are placed in the folders named
drawable-hdpi
drawable-ldpi
drawable-mdpi
drawable-xhdpi
Does drawable-ldpi refers to the phones with smaller screen ,drawable-xhdpi for tabs and drawable-mdpi medium sized screen phones.
If not i have a image i need to be able to put into all types of devices namingly phone,tab
How can i do it.
usually, larger screens have higher DPIs, but that is not always the case. if you are trying to differentiate between phone and tablet screens, density is not the right way. use the following,
drawable: phonesdrawable-sw600dp: 7″ tabletsdrawable-sw720dp: 10″ tabletsalternatively, you can use the screen size:
small,medium,large,xlarge. e.g.,drawable-large. from the docs,xlargescreens are at least 960dp x 720dplargescreens are at least 640dp x 480dpnormalscreens are at least 470dp x 320dpsmallscreens are at least 426dp x 320dp