自定义字典的EditText android系统 [英] custom dictionary for edittext in android

查看:137
本文介绍了自定义字典的EditText android系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能创建一个自定义词典的一个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.

这篇关于自定义字典的EditText android系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆