title: Different layout for 5 and 4 inch Android devices
body: <p>I have an Android application with one layout file. I have different layout files for different densities, i.e., layout-hdpi, layout-mdpi, etc. I also have different dimens files in corresponding value directories (values-mdpi, values-hdpi, etc).</p>
  
  <p>My problem is that I would like to use different layouts for 4 and 5 inch screen devices. I am testing on two physical a 4 inch and a 5 inch and both devices use the layout from the /res/layout folder and the dimens file from the /res/values-hdpi/ folder (in other words, they use the same resources).</p>
  
  <p>Is there a way to make the 4 inch device use a different dimens.xml file - if not automatically, can this be done programmatically?</p>