Answer the question
In order to leave comments, you need to log in
How to correctly fit the ImageView to the size of the content?
Greetings.
The situation is as follows: I programmatically create several ImageViews and add them to the LinearLayout. I load images into these ImageView through Picasso, put a callback on the end of the download, determine the proportions by the original size of the ImageView content to set the size of the ImageView.
The problem is that it only works once. How to deal with it?
Code
This is how it should be. But more often than not it
happens
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question