InputFilter 導致輸入法雙字,下劃線失效的記錄
阿新 • • 發佈:2018-12-21
public class MyFilter implements InputFilter { @Override public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) { // if(TextUtils.isEmpty(source)){ // return source; // } // SpannableString result = KWIMEmjSpanStringUtils.getEmotionContentSync(KWImInputBar.this.mSenceType, editContent.getContext(), editContent,source.toString()); // return result; return source; } }
retund 的時候不要改變souce的實際型別,否則會導致輸入法的異常雙字,下劃線失效的記錄