我有一个ListView适配器,当我修改我的TextView,我呼吁notifyDataSetChanged()对addTextChangeListener()方法。但是我的 TextView 失去了焦点。我如何保持焦点,覆盖notifyDataSetChanged()?
我这样做但没有用
@Override
public void notifyDataSetChanged(){
TextView txtCurrentFocus = (TextView) getCurrentFocus();
super.notifyDataSetChanged();
txtCurrentFocus.requestFocus();
}
Run Code Online (Sandbox Code Playgroud)