[Q] How to disable dropdown list auto-opening in AutoCompleteTextView?

89 posts
Thanks Meter: 11
By makalele2, Member on 19th March 2012, 01:34 AM
Post Reply Email Thread
Here's my problem. In my android app I use AutoCompleteTextView and refresh items list for each 5 seconds. Refreshing is working, when I call notifyDataSetChanged(). But when I type here something and it'll give me the list of matching items and then I close it manually, when another thread is refreshing the list and calling notifyDataSetChanged() dropdown list is showing automatically (even if I closed it before). And it's really annoying, because if list is long it takes whole screen and after closing it'll appear in another 5 secounds. I tried dismissDropDown() just after calling notifyDataSetChanged(), but it doesn't have any effect. It looks like dropdown is showing with a little delay. It's also not good way to fix it, because if user hasn't closed the list it'll close after a refresh. Also tried to take focus away - still no effect.

So I need a method to: update my items list (via notifyDataSetChanged()) without automatically showing dropdown list, but if dropdown was already showed don't close it.

Hope you can help,


P.S. I hope it's a good forum section, if not please move it. I already aksed this question on stackoverflow, but still no answers, no clue how to fix this.
20th March 2012, 04:27 PM |#2  
OP Member
Thanks Meter: 11
Really nobody have no idea?
22nd March 2012, 07:20 PM |#3  
OP Member
Thanks Meter: 11
Last bump......
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes