I'm newbie.
I want to change text of
TextViewWhile click on it.
My code:
val text: TextView = findViewById(R.id.android_text) as TextView
text.setOnClickListener {
text.setText(getString(R.string.name))
}
Output: I got the output but showing use property access syntax.
Can anyone tell me how to do it?
Thanks in advance.