The question is quite simple. But I want to know where exactly do we make our references to the gui elements? As in which is the best place to define:
final
in Kotlin 1.3
val readTextFromUser = (findViewById(R.id.inputedText) as EditText).text.toString()
This will read the current text that the user has typed on the UI screen