DisplayMetrics properties

34 views
Skip to first unread message

Android007

unread,
Nov 12, 2012, 4:15:23 AM11/12/12
to android-...@googlegroups.com
Hi,
It seems to me that DisplayMetrics has some  redundant properties (or at least properties that rely on each other).
Can someone explain to me why these are needed:
- Why do we need xdpi and ydpi when we have densityDpi? Aren't they equal?
- What is the difference between noncompatWidthPixels and widthPixels? Where/When is noncompatWidthPixels used?

Thanks

Android007

unread,
Nov 12, 2012, 4:34:00 AM11/12/12
to android-...@googlegroups.com
Also:
density = densityDpi /160
Why do we need both?
Reply all
Reply to author
Forward
0 new messages