Question

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

Was it helpful?

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

OTHER TIPS

I think you can use folder : layout-normal-land for landscape and layout-normal-port for portrait.

enter image description here

Its all here, if you just read the whole article it'll fixe your problem, ive been dealing with this before and this article helped me. Hope it helps you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top