[android-developers] Re: Clarification on DPI
On Dec 29 2011, 10:06 pm, Jonathan <jlani...@gmail.com> wrote:
> And how in the world do they get a 2/3 scaling factor?
HDPI density is 240 dpi, see http://developer.android.com/reference/android/util/DisplayMetrics.html#DENSITY_HIGH
if dp = px / (dpi/160) and dp = px * scaling factor then scaling
factor = 1 / (dpi/160)
hence, hdpi scaling factor is 1 / (240/160) or 160/240 resulting in 2/3
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home