自定义字典的EditText android系统自定义、字典、系统、EditText

由网友(人荡无罪物荡必碎i)分享简介:是否有可能创建一个自定义词典的一个EditText?换句话说,我可以创建自定义列表,并有EditText上只建议从该列表中的名字呢?我并不需要它弹出无用的单词建议,当用户输入的人具体姓名。Is it possible to create a custom dictionary for an edittext? In...

是否有可能创建一个自定义词典的一个EditText?换句话说,我可以创建自定义列表,并有EditText上只建议从该列表中的名字呢?我并不需要它弹出无用的单词建议,当用户输入的人具体姓名。

Is it possible to create a custom dictionary for an edittext? In other words, can I create a custom list and have the edittext only suggest names from that list? I don't need it popping up useless word suggestions when the user is inputting specific names of people.

推荐答案

请参考此链接。

的http://developer.android.com/intl/de/resources/samples/SearchableDictionary/index.html

他们会实施内容提供商提供自定义输入到快速搜索。您可以尝试采取类似的办法在那里你可以做一个查询,当用户输入每个字母在你的EditText框更新结果。

They would have implemented content provider to provide a custom input to the quicksearch. You can try taking a similar approach where in you can make a query and update the result when a user enters each alphabet in your EditText box.

阅读全文

相关推荐

最新文章