0
如何在android中使用Google dictionary
检查拼写?谷歌词典拼写检查在android?
我想知道,由我输入的单词是否正确。
它应该从Google dictionary
检查。
如果字是正确的,那么就应该在别人敬酒显示它不应该显示
如何在android中使用Google dictionary
检查拼写?谷歌词典拼写检查在android?
我想知道,由我输入的单词是否正确。
它应该从Google dictionary
检查。
如果字是正确的,那么就应该在别人敬酒显示它不应该显示
@Override
public void onGetSuggestions(final SuggestionsInfo[] arg0) {
final StringBuilder sb = new StringBuilder();
boolean isSpellCorrect = false;
for (int i = 0; i < arg0.length; ++i) {
// Returned suggestions are contained in SuggestionsInfo
final int len = arg0[i].getSuggestionsCount();
if(editText1.getText().toString().equalsIgnoreCase(arg0[i].getSuggestionAt(i)))
{
isSpellCorrect = true;
Toast.makeText(this, "Entered word is correct", Toast.LENGTH_LONG).show();
break;
}
}
}
使用此link对整个项目只是做在上述方法的变化。
请用code加贴描述.. – SilentKiller 2014-09-08 09:25:01