According to the Android documentation for screen support, they have described as follow,
- 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
I have a code snippet as follows;
Display display = getWindowManager().getDefaultDisplay();
int displayWidth = display.getWidth();
I need to get an idea for the value range for XML layouts which is related to displayWidth out-put.
As an example, I want an answer like;
if 0 < displayWidth < 320 are small screens
Above phrase may wrong, I just saw an example.
Further, we can have directories like layout, layout-small, layout-large, layout-xlarge and layout-xlarge-land under res directory. So what is the displayWidth applicable for those layouts.
As an example just like above;
if 0 < displayWidth < 320 for layout-small
Thank you.