Android的MultiAutoCompleteTextView [英] Android MultiAutoCompleteTextView
本文介绍了Android的MultiAutoCompleteTextView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要显示的,当用户在EDITTEXT信像Twitter.I曾与MultiAutoCompleteTextView尝试的朋友名单,如果ArrayList是用户之前加载它工作正常开始entering.But我需要做一个服务器调用获得具有名朋友同类型character.But开始变得API响应下拉后不showing.How我可以实现this.Please帮助我。
I need to show the list of friends when the user types a letter in Edittext like Twitter.I have tried with MultiAutoCompleteTextView and it works fine if the arraylist is loaded before user starts entering.But I need to make a server call to get the friends having the name starts with the types character.But after getting the api response the dropdown is not showing.How can I implement this.Please help me.
推荐答案
感谢您 psknik 1552-1553是
Thank you psknik.Solution is
CharSequence constraint = actv.getText();
adapter.getFilter().filter(constraint);
actv.showDropDown();
这篇关于Android的MultiAutoCompleteTextView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文