I'm making a function that sends Images Views Resource's size. The idea is to use this function in all the project for all the Image Views.
I need to send a height and width, so I've tried:
val widht =
binding.image.widht
val height =
binding.image.height
The problem is, that somethimes I got "0" and, othertimes (when the images have "match parent" or "wrap content") got null.
Is there a function to get those values?