android app not reading the xml file from large screen layout folder

Hi,

I am trying to use Resource Qualifier for layout as layout-large. But when the application is starting in the emulator its reading the same file from default layout folder. The res folder structure is as below :

res/
layout/login.xml
layout-large/login.xml

What I want is when there is large screen the layout-large/login.xml file should be read but its not.

What is wrong over here?

Any help would be appreciated?

Thanks & Regards
Rajesh

What version of Android API are you developing against/testing on? There are - unfortunately - serious bugs in several of the APsI with respect to the treatment of screen density and size that complicate the work of making apps adapt to all screens.

In particular, using the “default” resource as a backup to a specific size/density things tends not to work very well on several of the APIs. I would suggest that you try to create explicit layout-large, layout-medium, and layout-small (remove the default layout directory) instead. I suspect you will find that this works correctly.