I am using ImageView With width="Match_Parent" & Height="200dp" and ScaleType="Fitxy" in my xml file,Exactly what resolutions(In pixels) should in use for MDPI,HDPI,XHDPI,XXHDPI,XXXHDPI for this particular insistance.
Thanks in advance!
I am using ImageView With width="Match_Parent" & Height="200dp" and ScaleType="Fitxy" in my xml file,Exactly what resolutions(In pixels) should in use for MDPI,HDPI,XHDPI,XXHDPI,XXXHDPI for this particular insistance.
Thanks in advance!
Well that depends on the base image you are using. To calculate pixles for different screen sizes use the below formula:
px = dp * (dpi / 160)
list of dpi respective to screen sizes:
ldpi (low) ~120dpi
mdpi (medium) ~160dpi
hdpi (high) ~240dpi
xhdpi (extra-high) ~320dpi
xxhdpi (extra-extra-high) ~480dpi
xxxhdpi (extra-extra-extra-high) ~640dpi