I am currently working on a app and it might be used on all android devices. I find it really challenging to adjust my XML layout files according to various screen sizes. I have surfed a lot over this topic and found a useful doc at Developer site. The document is decent and provides enough information on what should be done for screen compatibility.
Questions :
1.If I have two different layouts in folders like res/layout-sw600dp and res/layout-sw720dp, will the app automatically decides which one of these layouts is to be used ?
2.Assuming that I prefer a ListView for handsets and GridView for Tabs as a Home Page display, how will I define my layouts and how will I refer them for UI ?
Any ideas on how I can pull off the 2nd question's feature will be highly appreciated. Thanks in advance.