Search code examples
androidandroid-layoutandroid-screen-supportandroid-screen

What is the best way to create folders in res to layouts in Android?


I have 4 folders in my res folder for layouts:
(layout-ldpi, layout-mdpi, layout-hdpi, layout-xxhdpi (for Galaxy S4)).

With some apps I made, the xxhdpi was used automaticaly for the Galaxy S3.
In the app I am building now, the layout on Galaxy S3 remains a mess.

Do I have to make an xhdpi folder for this device or does it exist a better way to do this?


Solution

  • Yes. S3 will pick up from xhdpi, if available.

    See http://blog.blundell-apps.com/list-of-android-devices-with-pixel-density-buckets/