How can I avoid autocomplete dropdown appearing when text is programmatically set?

后端 未结 5 1742
说谎
说谎 2021-02-07 04:16

I have an AutoCompleteTextView in my layout. I also have an alternative way to select the same items which are present in the AutoCompleteTextView. When the alternative way is

5条回答
  •  情歌与酒
    2021-02-07 05:02

    Looks like its a problem of the order how messages are processed. My work around looks like this:

    //autoCompleteTextView.dismissDropDown();
    new Handler().post(new Runnable() {
        public void run() {
            autoCompleteTextView.dismissDropDown();
    }});
    

提交回复
热议问题