There is a formula written in Android documentation
px = dp * (dpi / 160)
I have an Image whose dimensions are 35px X 35px
.I have a few questions regarding this.
- Should i convert this image into different
dp's
and put it in resources.- Does Android uses this formula to convert images into
dp
? or we need to use this formula to convert all images intoDP