How to avoid getting both called: onItemClicked and onTextChanged on AutoCompleteTextView

前端 未结 2 636
情话喂你
情话喂你 2021-02-04 00:56

I have this code. When I choose an item from suggestion list, the onTextChanged happens first, then oItemClicked comes after that. Now I want when choosing a word, the \"onItemC

2条回答
  •  死守一世寂寞
    2021-02-04 00:59

    There is no particular solution for this problem.I will suggest that you should put code on which is in inside onclicklistener() in the begining of textchangedlistener() so that the code that u want to get execute first will execute first then the code that you want to get execute last will execute last.Hope this will help you.

提交回复
热议问题