Answer the question
In order to leave comments, you need to log in
How to remove free space if there is no picture?
There is a news table. When a news is selected, a view opens where the imageview, title, text, etc. goes on top.
If there is no picture in the news, then the imageview is not processed (I tried to hide it), then an empty space remains.
What is the best way to proceed in this case? so that when there is no picture, there is no empty space?
Answer the question
In order to leave comments, you need to log in
Set the constraint to the height of the imageView. If there is no image, then change the value of the constraint to 0.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question