I have an app I am building in Android Studio. I get a value from MQTT and want to use the value to change the height of an imageView. My imageView is
val imagea = view.findViewById<ImageView>(R.id.imageView2)
and the value I get from my MQTT feed is
val msgl = "${message.toString()}"
How can I change the string to a int and then how do I change the height of the imageView2?