请问为什么我的EditText输入英文的时候,在出现标点时,怎么单词下面会突然出现红色下划线
拼写检查导致,\android\frameworks\base\core\java\android\widget\Editor.java
private void updateSpellCheckSpans(int start, int end, boolean createSpellChecker) {
// Remove spans whose adjacent characters are text not punctuation
mTextView.removeAdjacentSuggestionSpans(start);
mTextView.removeAdjacentSuggestionSpans(end);
if (mTextView.isTextEditable() && mTextView.isSuggestionsEnabled() &&
!(mTextView instanceof ExtractEditText)) {
if (mSpellChecker == null && createSpellChecker) {
mSpellChecker = new SpellChecker(mTextView);
}
if (mSpellChecker != null) {
//mSpellChecker.spellCheck(start, end);
}
}
}
注释掉 spellCheck 就不会再出现了。
不输入空格.,等等标点,不会出现这样的问题,一旦输入这样的字符,前面的所输入的单词都会自动加上红色下划线
要用英文状态下输入,好像中文状态下输入的话都会提示的(我还没有安装其它的输入法),我是这样试过
怎么修改这个颜色啊,我想换个颜色在哪去改