Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android screen resolutions

I am following this tutorial link

There three types of screens

xlarge screens are at least 960dp x 720dp
large screens are at least 640dp x 480dp
normal screens are at least 470dp x 320dp
small screens are at least 426dp x 320dp

But there are three folders

drawabale-hdpi
drawabale-mdpi
drawabale-ldpi

I placed images of xlarge in hdpi that of large in mdpi and that of normal in ldpi but where to place the images of small screens? Sorry for bad english

like image 680
androider Avatar asked Oct 05 '11 14:10

androider


1 Answers

For example, The following is a list of resource directories in an application that provides different layout designs for different screen sizes and different bitmap drawables for small, medium, high, and extra high density screens.

res/layout/my_layout.xml             // layout for normal screen size ("default")
res/layout-small/my_layout.xml       // layout for small screen size
res/layout-large/my_layout.xml       // layout for large screen size
res/layout-xlarge/my_layout.xml      // layout for extra large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation

res/drawable-mdpi/my_icon.png        // bitmap for medium density
res/drawable-hdpi/my_icon.png        // bitmap for high density
res/drawable-xhdpi/my_icon.png       // bitmap for extra high density

and Screen Sizes.

I hope this help.

like image 92
Uttam Avatar answered Oct 02 '22 02:10

Uttam