0
votes

I am developing an Android application intended for high end handset devices like Galaxy S3, Galaxy Nexus, Xperia V etc. Now I want to know which layout is suitable for devices with resolution 720x1280, density xhdpi and size normal.

I already tried layout-xhdpi-1280x720 and Galaxy S3 device is loading screens from here, but not Galaxy Nexus.

I have tried layout-sw260dp but Galaxy Nexus emulator do not loading screens. Also Nexus7 is emulator is loading from here. I don't want any tablet to run my app.

What can be the problem ? Does Device definition of Galaxy Nexus causes the problem ? I am using Android SDK 4.2.

1
Maybe this will help you: <stackoverflow.com/questions/11008199/…>tomasbuzek

1 Answers

0
votes

Now I want to know which layout is suitable for devices with resolution 720x1280, density xhdpi and size normal.

res/layout/ works nicely. If you are also supporting -small screen devices, have an additional res/layout-small/ for those. You may or may not also wish -land variants (e.g., res/layout-land/) if you want different layouts for different screen orientations.

I already tried layout-xhdpi-1280x720 and Galaxy S3 device is loading screens from here, but not Galaxy Nexus.

That approach has been deprecated for years.

I don't want any tablet to run my app.

Then specify the appropriate <compatible-screens> element in your manifest, to state that you only support small and normal screens, not large and xlarge. This has nothing to do with your choice of layout resource directory.