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