i am very new at Android/Kotlin development and I have a very simple question.
I try to use the “findViewById” expression in combination with a variable. x is a number and counted up.
Here is my snippet:
var my_element = "dot"+x
round = findViewById(R.id.my_element)
But it doesnt work.
How can I use a dynamic expression in the “findViewById”-function?