Well sp has nothing to do with points.  Whether you called them "Scale-
independent" or "Scaled"...  I don't know.  All they mean is that they
are the same as dp (the density-independent pixels), but also
accounting for the user's overall preferred font size.  So at the
default font size, 1 sp == 1 dp, but the user can set the font size to
be larger or smaller which will make 1 sp a corresponding scale factor
of 1 dp.

On Oct 9, 3:30 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Romain Guy wrote:
> > You are mistaken with dip (device independent pixel) :)
>
>  From docs/reference/available-resources.html
>
> "sp
>      Scale-independent Pixels - this is like the dp unit, but it is also
> scaled by the user's font size preference. It is recommend you use this
> unit when specifying font sizes, so they will be adjusted for both the
> screen density and user's preference."
>
> So, that's where I learned that sp is scale-independent pixels, not
> points. Not that I ever fully understood how the dickens this unit was
> supposed to work, anyway...
>
> If that's wrong, is there a better document I should be using?
>
> Thanks!
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 
> 2009http://www.bignerdranch.com/schedule.shtml
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to