有时候我们需要监听EditText的焦点状态,可以调用下面的方法处理事件:
holder.etNum.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if(hasFocus){ checkFocusInterface.editTextHasFocus(position,v,hasFocus); } } });