101

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?

Community
  • 1
  • 1
johan
  • 6,578
  • 6
  • 46
  • 68

1 Answers1

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".

WarrenFaith
  • 57,492
  • 25
  • 134
  • 150
  • 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". – WarrenFaith Apr 30 '17 at 19:51