【发布时间】:2015-10-18 01:07:18
【问题描述】:
我正在使用UserDictionary.Words 类的addWord 函数将单词添加到字典中,以便它们可以显示在文本预测中。字典中确实存在 APP_ID=0 的单词,并且可用于默认的 android 键盘。
但是我使用的是 Swift 键盘,它没有考虑预测这些词。
我正在使用这个TUTORIAL
UserDictionary.Words.addWord(this, "ThisIsSomeWordIwantForPrediction", 250, null, Locale.getDefault());
我的问题是如何添加单词以便它们可用于所有键盘的预测
【问题讨论】:
-
您好,您应该看到下面的链接是自定义键盘的源代码,希望这将有助于获得您想要的结果:github.com/AnySoftKeyboard/AnySoftKeyboard
标签: android keyword word android-userdictionary