-1

I have an images of size (width = 1444 * height = 760). Now i want to show it in imageview to set imageview weight and height i create different file for dimens.xml like:

dimens.xml
dimens.xml(hdpi)
dimens.xml(mdpi)
dimens.xml(xhdpi)
dimens.xml(xxhdpi)
dimens.xml(xxxhdpi)
dimens.xml(sw600dpi)
dimens.xml(sw720hdpi)

Now to set the image-view height and width. what size value to put in which dimens.xml file please help and sorry for English mistakes if any...

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

1 Answers1

0

try this:

LDPI: Portrait: 200 X 320px

MDPI: Portrait: 320 X 480px

HDPI: Portrait: 480 X 800px

XHDPI: Portrait: 720 X 1280px

XXHDPI: Portrait: 960 X 1600px

XXXHDPI: Portrait: 1440 x 2560px

Sneh Pandya
  • 8,197
  • 7
  • 35
  • 50