Automatically adjust image on various device types

Asked

Viewed 146 times

0

Eae blz ?! So I’m trying to work with images in native android classes, where the image is displayed through a class !! I already have a question where the link is just below !!

Resize image to screen size

So far I haven’t found anything about, and I’m thinking of creating several classes that would be one for each type of screen and mainactivity treated that but I don’t know how the scheme of the screens and the functions. Do you have any study material or tutorial for this??

  • some special reason not to use libraries like Glide or Picasso?

  • It would not be easier to add an imageview in XML?

  • Mr_anderson I will take a look at the library, and Rafael Silva the problem is that the application is full screen and an image even occupies the whole screen however sgunda image I want to overwrite I could not occupy the whole screen

  • I find it unnecessary...Glide is very simple to use...just type: Glide.with(context). load(myImg). into(imageView); where context is the context, myImg is the image itself, which can be any format, and imageView is the already instantiated widget.

  • https://github.com/bumptech/glide

No answers

Browser other questions tagged

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