android - What size of an image should I use to get sharp images? -


i making app android , having trouble providing right resources right dpi-folders make resource sharp , not pixelated. have made different resources every folder , sharp on lg g5 when loading app tablet pictures smaller , not sharp.

i gonna put sizes of different image sizes in here no 1 asks:

mdpi - 54x47 | hdpi - 81x70 | xhdpi - 108x94 | xxhdpi - 162x141

my tablet uses xhdpi resources , phone uses xxxhdpi resources.

i've wanted redo images sharp possible. took ruler , messured size of image should appear on screen , multiplied dpi calculate size of image.

i came width tablet:

0.866in * 320dpi = 277px

but when checked , calculated width of image phone, got this:

0.413in * 640dpi = 264px

at point confused because width hdpi larger 1 xxxhdpi.

i know if had tablet 640dpi image bigger 1 320dpi, still don't know size image should be.

is there maybe way categories images? saw screens have different screen sizes (small, normal, large, xlarge), far know determine layout size. can me sharp images?

i think have not added image resources tablet. tablet image resources need create 5 more folders in res directory

  1. mipmap-sw450dp-mdpi
  2. mipmap-sw450dp-hdpi
  3. mipmap-sw450dp-xhdpi
  4. mipmap-sw450dp-xxhdpi
  5. mipmap-sw450dp-xxxmdpi

for more information please read this.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -