Q:

how to differentiate 7" (1024*600) tablet and 10.1" (1280*800) tablet at design time

I am developing app for tablets which supports 7" 1024*600 resolution and 10.1" 1280*800 resolution. So in order to differentiate them I am making folder layout-large-mdpi for 7" and layout-xlarge-mdpi for 10.1". But while I run the app, it runs from layout-xlarge-mdpi folder for both the device. Can anyone please guide me on how to differentiate these two tablets through folders in xml?

A:

Make two different for layout also one layout for 7Inch as layout-sw600dp and for 10'inch as layout-720dp. and in the images make drawable also as drawable-large-hdpi(7Inch) and drawable-xlarge-mdpi(10Inch).

