2

I am currently using following image view -

<ImageView
        android:id="@+id/flag"
        android:layout_width="120dp"
        android:layout_height="120dp"
        android:background="#000000"
        />

but i am a little confused about

what to use dp or dip?

so that it changes from device to device say it should manage screen dimensions like for 320 x 640 Or is there anything else to manage it

thanks in advance

Community
  • 1
  • 1

1 Answers1

11

There's NO DIFFERENCE. dip and dp are the very same thing.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
  • 1
    Just a note for those stumbling across this in the future: The difference, that dp is more consistent with sp, is stated directly in the documentation. This can result in slight alteration of the size depending on the specific density of the device. The original answer disregards this detail. – Abandoned Cart Apr 28 '17 at 14:42