use dips on emulator, code, everywhere?
I use the emulator using resolution 240x400, density 120 (WQVGA400)
my phisical device is samsng galaxyS, 480x800 (density??)
when I design views using the the emulator (so using absolute coords), everything is OK
... but when I define (example) the .left property of view by code... I become mad
If I don't use "dip", the effect is different between emulator and phisical device (different position)
If I use "dip", the screen size seems to be different, example if my screen is width=480, the .left= 240dip is not in the middle but on the right side
what is the correct way?
hoW to use dip having the emulator to behave like the code "using dips"?
I mean: coord 240,400 should be always the exact centre of the screen, on the emulator, using code and on the phisical device (device 240x400 OR 480x800)
thank you