I doubt the density of the device you are playing with. I would suggest you to check the density of the device by using:
DisplayMetrics dm = context.getResources().getDisplayMetrics();int densityDpi = dm.densityDpi; Check for more info: http://stackoverflow.com/questions/3166501/getting-the-screen-density-programmatically-in-android On Wednesday, 23 January 2013 11:51:14 UTC+5:30, sree wrote: > > Hi, > i am implementing UI design for samsung S3 and nexus S.when i am run my > project compatability of screen is change. > i am using separate layout in res folder like layout-sw240dp(Nexus S), > layout-sw320dp(S3).when i am running these both devices are take > layout-sw320dp xml file. > > can help any one for these problem. > thank you in advance > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

