Android SoftKeyboard how to create own suggestions

坚强是说给别人听的谎言 提交于 2019-12-06 04:36:08

问题


I am developing a keyboard based on the softkeyboard sample. I would like to know how do I create my own suggestions. I see the setSuggestion method in Candidate View Class but in the parameter of that method, I see a list of string(Suggestions) is passed into the this method. My question is do I have to create my own algorithm for the suggestions in the setSuggestion method or another method from which the string array is passed.

来源:https://stackoverflow.com/questions/26541342/android-softkeyboard-how-to-create-own-suggestions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!