Use dip and sp, as recommended in the docs and not mm/inches. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com*
On Wed, Jun 22, 2011 at 1:25 PM, noriato <[email protected]> wrote: > I've got a button having a layout_height of 10mm which looks correct > on most devices, but on for instance the Lg Optimus 2X and on the > Motorola Defy the buttons have about half the size: > > I retrieved the DisplayMetrics info on those devices and here's a > short overview: > > HTC Desire Z: 480x800, density : HIGH, xdpi: 254.0, ydpi: 254.0 > Motorola Defy: 480x854, density : HIGH, xdpi: 96.0, ydpi: 96.0 > Samsung Galaxy S2: 480x800, density : HIGH, xdpi: 217.71428, ydpi: > 218.49463 > LG Optimus 2X: 480x800, density : HIGH, xdpi: 160.0, ydpi: 160.0 > > As you can see the Desire Z and the Samsung have a reasonable looking > x/y-dpi value. the defy and the optimus deliver obsiously incorrect > values that I assume are the reason for the wrong size. > > Is there any other way to get around that hardware bug/behaviour? > (Since the density delivers HIGH in all cases i cannot differentiate > the layout files via density / dimension.) > > Or is it recommended not using mm/inch sizes at all? > > TIA > > -- > 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 -- 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

