【发布时间】:2013-10-22 10:10:17
【问题描述】:
我有一个列表视图适配器,当我修改我的 TextView 时,我在 addTextChangeListener() 方法上调用 notifyDataSetChanged()。但是我的 TextView 失去了焦点。
我怎样才能保持焦点,覆盖notifyDataSetChanged()?
我这样做了,但没有工作
@Override
public void notifyDataSetChanged(){
TextView txtCurrentFocus = (TextView) getCurrentFocus();
super.notifyDataSetChanged();
txtCurrentFocus.requestFocus();
}
【问题讨论】:
标签: android listview android-arrayadapter notifydatasetchanged