I checked for xdpi and ydpi values on my device call following method in oncreate method.
DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); metrics.xdpi; --------> 239.05882 metrics.ydpi; --------> 243.72585 metrics.density; ------> 1.5 metrics.densityDpi; ---> 240 after getting those values I simple rename my resource value directory name to "sw240dp", but result is same...... any other solution for this. Thank you On Fri, Sep 28, 2012 at 6:06 PM, Marina Cuello <marina.ear...@gmail.com>wrote: > I'm sorry. I wrote lower when I was thinking higher, LOL. > The dpi values for ldpi, mdpi and so on are only standard ones, and most > devices have different values. > Try getting the xDpi and yDpi from a DisplayMetrics. I have an Xperia Neo > V and the width was around 250dp. > > Marina > On Sep 28, 2012 8:51 AM, "vinay kumar" <vk872...@gmail.com> wrote: > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en