onEditorAction回调发生的延迟太长,如何解决此问题?
OnEditorActionListener searchViewEditorActionListener = new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction (TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
performSearchAndUpdateUI();
return true;
}
return false;
}
};
if (mSearchViewEt != null) {
mSearchViewEt.setOnEditorActionListener(searchViewEditorActionListener);
}