Fetch AutoCompleteTextView suggestions from service in separate thread

后端 未结 3 2177
醉话见心
醉话见心 2021-02-09 16:57

For my AutoCompleteTextView I need to fetch the data from a webservice. As it can take a little time I do not want UI thread to be not responsive, so I need somehow

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-09 17:22

    had the same solution except that the problem is that everything is just fine ( variables are updated when i debug) but the autocomplete fills weirdly as in

    when i type sco it has the results but does not show in list but when i backspace it shows the result for sco. In debug all the variables are updated which only tells me that the UI is not getting updated for AutoCompleteTextView. as when i backspace it is triggered for update and then it shows earlier computer list then it(in the mean time it updates it with the new list items for new search string. anyone ran into this problem?

提交回复
热议问题