I am creating layouts for targeting my application for all screen sizes and densities (including tablets 7,9.1 and 10 inches). I have a few queries for which I haven't been able to understand well even though after reading the documentation. Currently, I have made four layouts namely layout-large,*normal*,small,*-sw320dp* and -sw480dp. I am confused about images densities.
I am referring to the image that android provides by default (ic_launcher.png
under drawable-hdpi
, drawable-ldpi
, drawable-mdpi
, drawable-xhdpi
and drawable-xxhdpi
.) I have made a sample layout taken a image view and given src as ic_launcher.png. However, this image is not displayed on any device or emulator.
- Do I need to specify different sized images? If so, in which folders? Because layouts for larger screens should take larger images.
- Do
hdpi
,ldpi
, andmdpi
imply similar sized images with different density or images with different sizes only? - Also in case of layout for larger screen, should I refer to drawables for large sized images (if I am taking small, medium, large images), or will Android take it from
drawable-hdpi
?