[android-developers] Re: How ratio of dp-to-pixel change with the screen density?

2009-03-10 Thread Dianne Hackborn
On Mon, Mar 9, 2009 at 10:27 PM, e3075 wrote: > However can someone help to explain "sp"? > In Android doc, it says "but it is also scaled by the user's font > size preference", what is "font size preference" being referred here? It's a setting that isn't currently exposed in preferences, allo

[android-developers] Re: How ratio of dp-to-pixel change with the screen density?

2009-03-10 Thread Dianne Hackborn
The px, mm, and pt units are absolute dimensions. If the device is configured correctly (the current system on the G1 unfortunately has bugs here), then 1 px will be exactly one inch on screen. On Sun, Mar 1, 2009 at 8:16 PM, Xiongzh wrote: > > Thank you very much for your clear explaination. >

[android-developers] Re: How ratio of dp-to-pixel change with the screen density?

2009-03-10 Thread e3075
Thanks for making clarifications on "dip" which is quite helpful. However can someone help to explain "sp"? In Android doc, it says "but it is also scaled by the user's font size preference", what is "font size preference" being referred here? Comparing with "dip", "sp" has a extended meaning t

[android-developers] Re: How ratio of dp-to-pixel change with the screen density?

2009-03-01 Thread Xiongzh
Thank you very much for your clear explaination. Now I agree with you that we had better use dip/sp as the dimention unit to design the UI. However when we shall use px/mm/pt? On 3月1日, 下午12时16分, Romain Guy wrote: > Hi, > > The reason for dip to exist is simple enough. Take for instance the > T-

[android-developers] Re: How ratio of dp-to-pixel change with the screen density?

2009-02-28 Thread Romain Guy
Hi, The reason for dip to exist is simple enough. Take for instance the T-Mobile G1. It has a pixel resolution of 320x480 pixels. Now image another device, with the same physical screen size, but more pixels, for instance 640x480. This device would have a higher pixel density than the G1. If you