Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

What is the differences between the px, dip, dp and sp units in Android?

NickFNickF USAMember Posts: 132

I'm new to Android. Please explain me the differences between the px, dip, dp and sp units in Android. Thanks in advance.

Tagged:

Comments

  • DavidMDavidM USAMember Posts: 342
    1. px is one pixel.
    2. sp is scale-independent pixels.
    3. dip is Density-independent pixels.

    sp is for font sizes. dip or dp is for everything else.

    If you need further clarification, please visit this page.

Sign In or Register to comment.