Home:ALL Converter>android screen supporting for different resolutions in same density

android screen supporting for different resolutions in same density

Ask Time:2012-05-24T14:38:20         Author:Hassy31

Json Formatter

I'm developing an application which supports xhdpi devices. so I created layout-xhdpi and drawable-xhdpi folders to place my drawables and layouts.but I'm having a problem when supporting different resolution in same density. as an example samsung galaxy nexus and sharp IS003 detects same layout-xhdpi folder because it has same density but when I run the application in both devices,it displays buttons and images at different positions because both devices got different resolutions.

am I doing something wrong? should I create different folders for specific resolutions? I have read supporting multiple screens documentation and tried to declare layouts like res/layout-sw600dp/ but it wont detect for IS03.

Please help me to solve this problem.

Author:Hassy31,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/10732366/android-screen-supporting-for-different-resolutions-in-same-density
yy