https://kotlinlang.org logo
#android
Title
# android
r

Remon Shehata

05/15/2020, 11:22 AM
I was using
EditText
and I had
addTextChangedListener
. I switched to
TextInputEditText
and I can't find the listener now!
s

Saurabh

05/15/2020, 11:31 AM
If you are talking about the method
addTextChangedListener
, it is right there.
r

Remon Shehata

05/15/2020, 11:31 AM
Maybe it's an IDE issue.. Lemme restart my IDE
It's not there
s

Saurabh

05/15/2020, 11:43 AM
Can you run
./gradlew clean assembleDebug
See if you get any errors there.
r

Remon Shehata

05/15/2020, 11:49 AM
FAILURE: Build failed with an exception.
s

Saurabh

05/15/2020, 11:57 AM
That is weird man. TextInputEditText inherits from AppCompatEditText. It just has that method. Can you show me your xml just once where you have declared this edit text.
r

Remon Shehata

05/15/2020, 11:57 AM
yeah I am looking at the documentation now
I did findViewbyID and made type EditText
it's working
but i'ts so weird
45 Views