sam liyanage wrote:
i have several Virtual Devices.i used dp for height and width.but when i run this in several devices it shows the button in different sizes.please find the attachment.
. At runtime, the system transparently handles any scaling of the dp units, as necessary, based on the actual density of the screen in use. The conversion of dp units to screen pixels is simple: px = dp * (dpi / 160). For example, on a 240 dpi screen, 1 dp equals 1.5 physical pixels