R
R
Renat8712021-09-26 19:19:03
Kotlin
Renat871, 2021-09-26 19:19:03

Why doesn't textView.text kotlin work?

Hey!
I watch a bunch of Kotlin training videos and everywhere when I need to extract text from a textview they use the textView.text.toString () command, it doesn’t work for me, although auto-import is enabled and even
import android.widget.TextView is imported

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacen11, 2021-09-26
@Jacen11

because you imported a class, and you need a
vanguy view object that you are trying to use Kotlin extensions, but have not configured them, your courses are already outdated, better take a book and start by learning the language, you do not understand the basics

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question