I have been reading about dp, px, ppi
and dpi
for awhile now, and I am lost.
Why is it that a large phone like the Galaxy Note 3
(with a 5.7 inch
display) can have the same dp
as a Moto X
(with only 4.7 inches
)?
My calculation for each returns a width=360dp
and height=640dp
. It seems like many higher density phones fall in this range. Is this true or am I misunderstanding dp
?
I am using the following to calculate my values: How to determine the screen width in terms of dp or dip at runtime in Android?