My code is like this val myButton = findViewById(R.id.button1)
val myButton = findViewById(R.id.button1)
i want to chage the text by using
but it is not working.
The return type of getText() and the parameter type of setText() are different, so it's currently not possible to combine them into a Kotlin property. There's an issue here for this problem.