Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android relationship between mdpi, hdpi, xhdpi, xxhdpi how to calculate

android image size different mdpi, hdpi, xhdpi, xxhdpi ? i have a mdpi image 20*20 how to measure hdpi, xhdpi, xxhdpi how to make other resolution image different screen sizes due to Android having set standard size ?

like image 341
Rahul Vishwakarma Avatar asked Oct 18 '25 19:10

Rahul Vishwakarma


1 Answers

Here is the scale factor list for each density:

  • ldpi = 0.75x
  • mdpi = 1.0x
  • hdpi = 1.5x
  • xhdpi = 2.0x
  • xxhdpi = 3.0x
  • xxxhdpi = 4.0x

So for example, if your mdpi image size is 20x20 then xhdpi size should be 40x40

like image 185
Dmitri Timofti Avatar answered Oct 20 '25 07:10

Dmitri Timofti