Is dp the same as dip? [duplicate]
Asked Answered
L

1

102

Possible Duplicate:
Difference of px, dp, dip and sp in android

I've found several topics on this. But none really answers my question.

Dp and dip in android. What is the difference? Is it the same thing?

Levey answered 30/9, 2011 at 9:11 Comment(2)
guess I didn't read carefully enough. Thanks for the down vote :)Levey
This might be a duplicate but this is the first link that pops up on google when you find the difference between the 2Gond
P
126

Yes, they are the same. There is no difference, its just an alias.

Documentation:

The compiler accepts both "dip" and "dp", though "dp" is more consistent with "sp".

Phocaea answered 30/9, 2011 at 9:13 Comment(1)
@LoungeKatt can you please explain a bit more? "dip" is not even mentioned in the documentation anymore and I have never seen anyone ever stating that there are "slight alteration of the size".Phocaea

© 2022 - 2024 — McMap. All rights reserved.