Hi all, I'm really stuck with a problem concerning the real size of objects displayed on the screen. What I simply want to do is, to display an object on the screen, scaled to a width of 2 inches. I don't understand why, but Android offers at least three units to do this: dp (device independent pixel), mm (millimeter) and in (inch) with the relation: 160dp = 25.4mm = 1in. At least the relation between the units seems to be ok. On Samsung Galaxy everything looks good. But unfortunately on HTC Sensation these units don't match their "real world" meaning (2in is about 47mm on HTC Sensation).
A very simple layout to demonstrate my problem is the following: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ImageView android:layout_width="250dp" android:layout_height="320dp" android:background="#FFFFFFFF" /> </LinearLayout> Best regards, Niels -- 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