I've main.xml in layout and layout-xlarge folder. In phones with wider screens like Galaxy Note, I would like to use main.xml from layout-xlarge folder. How can I redirect the android system to use that specific layout file dynamically from code based on condition?
For eg : if some condition is true, then use main.xml file from layout folder and if false use main.xml from layout-xlarge folder.