setText() without calling onTextChanged()
Posted
by
user1537779
on Stack Overflow
See other posts from Stack Overflow
or by user1537779
Published on 2014-05-29T09:22:00Z
Indexed on
2014/05/29
9:24 UTC
Read the original article
Hit count: 163
android
|android-edittext
Is there a way I can set text to an EditTextView
, but not trigger its onTextChanged()
or afterTextChanged()
.
In onTextChanged()
, I am making a server call to get autocompletes. But once the user selects from the dropdown, I want to set text to the EditTextView
, but it again calls the server and shows the dropdown.
While I can have a flag not to make server call when selected from dropdown, using the onItemClick()
on dropdown(ListView). How can I remove the flag again, if the user tried to edit the text later.
© Stack Overflow or respective owner