Imageview Android Responsive for all devices

Asked

Viewed 267 times

0

I have an Imageview and the problem is this:

On smaller screens the image gets too big; on larger screens, it gets too small.

I’ve made the folders hdpi, xhdpi and similar, but no good, I wanted to know if there is any code that makes the image is self-adjusting on each screen of the device.

  • Pole the xml of Imageview

  • I suppose in every folder, hdpi, xhdpi etc, have a resized image of the original image according to each folder.

  • Post the xml of the imageview.. But if in each folder you already have an image resized for each one.. in xml is just set to width and height as wrap_content.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.