Search code examples
javaandroidlayoutscreen-resolution

Android layout folders


Hi I'm developing an android application and I'm having trouble with the layout on nexus phones and tablets as they are very high resolution. I don't know which layout folder would be applicable to best match nexus 5, nexus 7, etc as they both have different screen sizes but very similar resolution. Can anyone give opinion to achieve this? I know probably I'll be needing different folders for the different phones (nexus 5 and nexus 7 to name a couple) but can't figure out the best ones to use. Thanks


Solution

  • Here are some numbers for typical screen widths:

    320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).

    480dp: a tweener tablet like the Streak (480x800 mdpi).

    600dp: a 7” tablet (600x1024 mdpi).

    720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc).

    Refer guide

    And also:

    For nexus 7

    layout-large-hdpi
    

    For nexus 10

    layout-xlarge-xhdpi